Skip to content

Commit

Permalink
Merge pull request #53 from kit-ty-kate/cpp
Browse files Browse the repository at this point in the history
Always compile C++ files with -x c++ on non-msvc compilers
  • Loading branch information
kit-ty-kate authored Aug 21, 2024
2 parents 5e25675 + 0dba264 commit 9582aaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/context_flags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ let cxxflags =
let flags =
(if (Sys.win32 && Config.ccomp_type = "msvc")
then ["\"/EHsc\""]
else ["-Wall -Wextra -Wno-unused-parameter"]) @
(ifc (Config.system = "macosx") ["-x"; "c++"]) @
else ["-Wall -Wextra -Wno-unused-parameter -x c++"]) @
(ifc useGLPK ["-DUSEGLPK"]) @
(ifc useCOIN ["-DUSECOIN"]) @
(ifc useCLP ["-DUSECLP"]) @
Expand Down

0 comments on commit 9582aaf

Please sign in to comment.