File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 2
2
This is the modulefile for the LLVM compiler
3
3
]] )
4
4
5
- local version = " 4.0 "
5
+ local version = myModuleVersion ()
6
6
7
7
whatis (" Name: LLVM " .. version )
8
8
whatis (" Version " .. version )
You can’t perform that action at this time.
0 commit comments