summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-24 10:41:13 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-14 10:16:36 -0500
commit6060003e4f95101adaef0b2c7f26154c59f2e83a (patch)
treeacad490c1739be6d1170ed246f20cb5d0ae267f1
parent8ef7a15a0c59b4ceff7f6343cabca8497c0eef50 (diff)
downloadhaskell-6060003e4f95101adaef0b2c7f26154c59f2e83a.tar.gz
Pass -Wno-unused-command-line-arguments during link on FreeBSD
FreeBSD cc throws a warning if we pass -pthread without actually using any pthread symbols.
-rw-r--r--compiler/main/DynFlags.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 7857538de8..6b066e3208 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -1836,7 +1836,9 @@ wayOptl :: Platform -> Way -> [String]
wayOptl _ (WayCustom {}) = []
wayOptl platform WayThreaded =
case platformOS platform of
- OSFreeBSD -> ["-pthread"]
+ -- N.B. FreeBSD cc throws a warning if we pass -pthread without
+ -- actually using any pthread symbols.
+ OSFreeBSD -> ["-pthread", "-Wno-unused-command-line-argument"]
OSOpenBSD -> ["-pthread"]
OSNetBSD -> ["-pthread"]
_ -> []