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()
151
151
filter { " toolset:clang" , " system:not macosx" }
152
152
linkoptions { " -fuse-ld=/usr/bin/ld.lld" }
153
153
154
- filter { " system:macosx" , " language:C++" }
154
+ filter { " toolset:clang" }
155
+ buildoptions { " -fstandalone-debug" }
156
+
157
+ filter { " toolset:clang" , " language:C++" , " system:macosx" }
155
158
buildoptions { gcc_buildflags , " -stdlib=libc++" }
156
159
links { " c++" }
157
160
@@ -238,8 +241,9 @@ function StaticLinksOpt(libnames)
238
241
end
239
242
240
243
function 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" )
243
247
end
244
248
245
249
function GccVersion ()
You can’t perform that action at this time.
0 commit comments