Skip to content

Commit

Permalink
<uncomment> system code macos in terralib.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hiemstar committed May 27, 2024
1 parent 25cb501 commit dd7754f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/terralib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3774,11 +3774,11 @@ function terra.includecstring(code,cargs,target)
args:insert(path)
end
-- Obey the SDKROOT variable on macOS to match Clang behavior.
--local sdkroot = os.getenv("SDKROOT")
--if sdkroot then
-- args:insert("-isysroot")
-- args:insert(sdkroot)
--end
local sdkroot = os.getenv("SDKROOT")
if sdkroot then
args:insert("-isysroot")
args:insert(sdkroot)
end
-- Set GNU C version to match value set by Clang: https://github.com/llvm/llvm-project/blob/f77c948d56b09b839262e258af5c6ad701e5b168/clang/lib/Driver/ToolChains/Clang.cpp#L5750-L5753
if ffi.os ~= "Windows" and terralib.llvm_version >= 100 then
args:insert("-fgnuc-version=4.2.1")
Expand Down

0 comments on commit dd7754f

Please sign in to comment.