File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ function SetupNativeProject()
151151 filter { " toolset:clang" , " system:not macosx" }
152152 linkoptions { " -fuse-ld=/usr/bin/ld.lld" }
153153
154- filter { " system:macosx" , " language:C++" }
154+ filter { " toolset:clang" }
155+ buildoptions { " -fstandalone-debug" }
156+
157+ filter { " toolset:clang" , " language:C++" , " system:macosx" }
155158 buildoptions { gcc_buildflags , " -stdlib=libc++" }
156159 links { " c++" }
157160
@@ -238,8 +241,9 @@ function StaticLinksOpt(libnames)
238241end
239242
240243function UseClang ()
241- local compiler = os.getenv (" CXX" ) or " "
242- return string.match (compiler , " clang" )
244+ local cc = _OPTIONS .cc or " "
245+ local env = os.getenv (" CXX" ) or " "
246+ return string.match (cc , " clang" ) or string.match (env , " clang" )
243247end
244248
245249function GccVersion ()
You can’t perform that action at this time.
0 commit comments