Skip to content

Commit b4aab8c

Browse files
committed
Adding built-in llvm
1 parent 110f809 commit b4aab8c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

macOS/Core/llvm/3.9.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
help([[
2+
This is the modulefile for the LLVM compiler
3+
]])
4+
5+
local version = myModuleVersion()
6+
7+
whatis("Name: LLVM " .. version)
8+
whatis("Version " .. version)
9+
whatis("Keywords: System, Compiler")
10+
whatis("URL: http://www.llvm.org/")
11+
whatis("Description: LLVM compiler family")
12+
13+
family("compiler")
14+
15+
local prefix = "/usr"
16+
local bin = pathJoin(prefix, "bin")
17+
local lib = pathJoin(prefix, "lib")
18+
local include = pathJoin(prefix, "include")
19+
20+
setenv("CC", pathJoin(bin, "clang"))
21+
setenv("CXX", pathJoin(bin, "clang++"))
22+
23+
local mroot = os.getenv("MODULEPATH_ROOT")
24+
local mdir = pathJoin(mroot, "Compiler", "llvm", version)
25+
prepend_path("MODULEPATH", mdir)
26+
27+

macOS/Core/llvm.lua renamed to macOS/Core/llvm/4.0.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ help([[
22
This is the modulefile for the LLVM compiler
33
]])
44

5-
local version = "4.0"
5+
local version = myModuleVersion()
66

77
whatis("Name: LLVM " .. version)
88
whatis("Version " .. version)

0 commit comments

Comments
 (0)