Skip to content

Commit 8b3eadf

Browse files
committed
Simplify the structure of the LLVM package
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent c80986e commit 8b3eadf

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

build/LLVM.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,30 @@ function SetupLLVMIncludes()
4343
includedirs
4444
{
4545
path.join(LLVMRootDirDebug, "include"),
46-
path.join(LLVMRootDirDebug, "tools/clang/include"),
47-
path.join(LLVMRootDirDebug, "tools/clang/lib"),
46+
path.join(LLVMRootDirDebug, "clang/include"),
47+
path.join(LLVMRootDirDebug, "clang/lib"),
4848
path.join(LLVMRootDirDebug, "build/include"),
49-
path.join(LLVMRootDirDebug, "build/tools/clang/include"),
49+
path.join(LLVMRootDirDebug, "build/clang/include"),
5050
}
5151

5252
filter { "configurations:Release" }
5353
includedirs
5454
{
5555
path.join(LLVMRootDirRelease, "include"),
56-
path.join(LLVMRootDirRelease, "tools/clang/include"),
57-
path.join(LLVMRootDirRelease, "tools/clang/lib"),
56+
path.join(LLVMRootDirRelease, "clang/include"),
57+
path.join(LLVMRootDirRelease, "clang/lib"),
5858
path.join(LLVMRootDirRelease, "build/include"),
59-
path.join(LLVMRootDirRelease, "build/tools/clang/include"),
59+
path.join(LLVMRootDirRelease, "build/clang/include"),
6060
}
6161
else
6262
local LLVMBuildDir = get_llvm_build_dir()
6363
includedirs
6464
{
6565
path.join(LLVMRootDir, "include"),
66-
path.join(LLVMRootDir, "tools/clang/include"),
67-
path.join(LLVMRootDir, "tools/clang/lib"),
66+
path.join(LLVMRootDir, "clang/include"),
67+
path.join(LLVMRootDir, "clang/lib"),
6868
path.join(LLVMBuildDir, "include"),
69-
path.join(LLVMBuildDir, "tools/clang/include"),
69+
path.join(LLVMBuildDir, "clang/include"),
7070
}
7171
end
7272

build/scripts/LLVM.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,14 @@ function package_llvm(conf, llvm_base, llvm_build)
399399
os.copydir(llvm_build_libdir, out .. "/build/lib", "*.a")
400400
end
401401

402-
os.copydir(llvm_base .. "/clang/include", out .. "/tools/clang/include")
403-
os.copydir(llvm_build .. "/tools/clang/include", out .. "/build/tools/clang/include")
402+
os.copydir(llvm_base .. "/clang/include", out .. "/clang/include")
403+
os.copydir(llvm_build .. "/tools/clang/include", out .. "/build/clang/include")
404404

405405
os.copydir(llvm_build_libdir .. "/clang", out .. "/lib/clang")
406406

407-
os.copydir(llvm_base .. "/clang/lib/CodeGen", out .. "/tools/clang/lib/CodeGen", "*.h")
408-
os.copydir(llvm_base .. "/clang/lib/Driver", out .. "/tools/clang/lib/Driver", "*.h")
409-
os.copydir(llvm_base .. "/clang/lib/Driver/ToolChains", out .. "/tools/clang/lib/Driver/ToolChains", "*.h")
407+
os.copydir(llvm_base .. "/clang/lib/CodeGen", out .. "/clang/lib/CodeGen", "*.h")
408+
os.copydir(llvm_base .. "/clang/lib/Driver", out .. "/clang/lib/Driver", "*.h")
409+
os.copydir(llvm_base .. "/clang/lib/Driver/ToolChains", out .. "/clang/lib/Driver/ToolChains", "*.h")
410410

411411
local out_lib_dir = out .. "/build/lib"
412412
if os.ishost("windows") then

0 commit comments

Comments
 (0)