Skip to content

Commit d4c4050

Browse files
committed
get_llvm_build_dir() returns "build" subdir if it exists, if not - subdir with package name.
1 parent 8bc1c56 commit d4c4050

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/LLVM.lua

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

2727
function get_llvm_build_dir()
28-
return path.join(LLVMRootDir, get_llvm_package_name())
28+
local packageDir = path.join(LLVMRootDir, get_llvm_package_name())
29+
local buildDir = path.join(LLVMRootDir, "build")
30+
if os.isdir(buildDir) then
31+
return buildDir
32+
else
33+
return packageDir
34+
end
2935
end
3036

3137
function SetupLLVMIncludes()

0 commit comments

Comments
 (0)