[commit: ghc] wip/angerman/llvmng: adds -latomic to. ghc-prim (80b2749)
git at git.haskell.org
git at git.haskell.org
Tue Jan 9 02:40:25 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/angerman/llvmng
Link : http://ghc.haskell.org/trac/ghc/changeset/80b27492a245adf47fc5ff28e15ef44afb2b30f1/ghc
>---------------------------------------------------------------
commit 80b27492a245adf47fc5ff28e15ef44afb2b30f1
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Mon Dec 4 10:56:13 2017 +0800
adds -latomic to. ghc-prim
>---------------------------------------------------------------
80b27492a245adf47fc5ff28e15ef44afb2b30f1
libraries/ghc-prim/ghc-prim.cabal | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal
index e99686a..bad1889 100644
--- a/libraries/ghc-prim/ghc-prim.cabal
+++ b/libraries/ghc-prim/ghc-prim.cabal
@@ -66,6 +66,9 @@ Library
-- on Windows. Required because of mingw32.
extra-libraries: user32, mingw32, mingwex
+ if os(linux)
+ extra-libraries: atomic
+
c-sources:
cbits/atomic.c
cbits/bswap.c
More information about the ghc-commits
mailing list