I get an error that the system headers are not found when including them using terralib.includec(...).
I am running on macos Sonoma 14.4.1 using an M3. My C++ compiler is AppleClang 15.0.0.15000309. I can reproduce the issue for different versions of llvm, ranging from 13-17.
commenting out the following lines in terralib.lua solves the issue for me
-- 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
I get an error that the system headers are not found when including them using
terralib.includec(...)
.I am running on macos Sonoma 14.4.1 using an M3. My C++ compiler is AppleClang 15.0.0.15000309. I can reproduce the issue for different versions of llvm, ranging from 13-17.
commenting out the following lines in terralib.lua solves the issue for me