Skip to content

Commit 7b9a40d

Browse files
committed
Use correct LLVM build dir for includes from unpackaged LLVM builds
`get_llvm_build_dir()` returns directory `<llvm_dir>/build`. It is incorrect when using non-packaged LLVM build, because LLVM is built into `'deps/llvm/'..get_llvm_package_name()`. This change fixes issue where using unpackaged LLVM build resulted in `error: ‘StrictFP’ is not a member of ‘llvm::Attribute’`.
1 parent 0823496 commit 7b9a40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/LLVM.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function SearchLLVM()
2525
end
2626

2727
function get_llvm_build_dir()
28-
return path.join(LLVMRootDir, "build")
28+
return path.join(LLVMRootDir, get_llvm_package_name())
2929
end
3030

3131
function SetupLLVMIncludes()

0 commit comments

Comments
 (0)