File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,13 @@ function SearchLLVM()
25
25
end
26
26
27
27
function get_llvm_build_dir ()
28
- return path .join (LLVMRootDir , " build" )
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
29
35
end
30
36
31
37
function SetupLLVMIncludes ()
@@ -94,13 +100,20 @@ function SetupLLVMLibs()
94
100
defines { " __STDC_CONSTANT_MACROS" , " __STDC_LIMIT_MACROS" }
95
101
96
102
filter { " system:macosx" }
97
- links { " c++" , " curses" , " pthread" , " z" }
98
-
103
+ links { " c++" , " curses" }
104
+
105
+ filter { " system:macosx or system:linux" }
106
+ links { " pthread" , " z" }
107
+
99
108
filter { " action:vs*" }
100
109
links { " version" }
101
110
102
111
filter {}
103
112
113
+ if os .ishost (" linux" ) and os .isfile (" /usr/lib/libtinfo.so" ) then
114
+ links { " tinfo" }
115
+ end
116
+
104
117
if LLVMDirPerConfiguration then
105
118
filter { " configurations:Debug" }
106
119
libdirs { path .join (LLVMRootDirDebug , " build/lib" ) }
You can’t perform that action at this time.
0 commit comments