Skip to content

Commit

Permalink
inline-c-cpp: Move -optc-xc++ into common cxx-opts, clean up -std
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jan 1, 2021
1 parent 28d90fc commit b751189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inline-c-cpp/inline-c-cpp.cabal
Expand Up @@ -52,6 +52,7 @@ common cxx-opts
-- C++. GCC accepts this via -std, whereas Clang requires us to change the
-- command.
ghc-options:
-optc-xc++
-optc-std=c++11
-optc-Wall
if os(darwin)
Expand All @@ -68,7 +69,7 @@ library
, containers
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -optc-xc++ -optc-std=c++11
ghc-options: -Wall
include-dirs: include
install-includes: HaskellException.hxx HaskellStablePtr.hxx
cxx-sources: cxx-src/HaskellException.cxx
Expand Down Expand Up @@ -97,4 +98,3 @@ test-suite tests
else
ghc-options:
-optc-Werror

0 comments on commit b751189

Please sign in to comment.