Skip to content

Commit b4f7459

Browse files
committed
Improve error handling in build scripts UseClang().
1 parent d311d3b commit b4f7459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/Helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function StaticLinksOpt(libnames)
204204
end
205205

206206
function UseClang()
207-
local compiler = os.getenv("CXX")
207+
local compiler = os.getenv("CXX") or ""
208208
return string.match(compiler, "clang")
209209
end
210210

0 commit comments

Comments
 (0)