From 0dba264dfd849e792ce574bcffb3e5f9f47d480f Mon Sep 17 00:00:00 2001 From: Kate Date: Tue, 6 Aug 2024 00:54:45 +0100 Subject: [PATCH] Always compile C++ files with -x c++ on non-msvc compilers --- src/context_flags.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/context_flags.ml b/src/context_flags.ml index c9585ae..814a3da 100644 --- a/src/context_flags.ml +++ b/src/context_flags.ml @@ -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"]) @