Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions m3-sys/llvm/llvm13/src/m3makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import("libm3")
import("m3middle")
import("m3quake")
if equal (OS_TYPE, "POSIX")
LIB_DIR = ""
import_lib("LLVM-13",LIB_DIR)
end
import("llvm13bindings")

include("version.quake")
Expand Down
3 changes: 2 additions & 1 deletion m3-sys/llvm/llvm13bindings/src/m3makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Module ("M3DebugInfo")

if equal (OS_TYPE, "POSIX")
% set the location of posix libraries llvm depends on
LIB_DIR = "/usr/local/lib"
LIB_DIR = ""
% set the location of the llvm libraries
LLVM_LIB_DIR = LIB_DIR

Expand Down Expand Up @@ -77,6 +77,7 @@ proc llvmlibs() is
lib = lib_tab{key}
if equal (OS_TYPE, "POSIX")
lib = sub(lib,3,len(lib)) %remove lib prefix
lib = subst(lib,".so","",1) %remove lib suffix
end
if equal(OS, "Windows_NT")
lib = subst(lib,".lib","",1) %remove suffix
Expand Down