File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ publish: dist
33
33
install :
34
34
pip install
35
35
36
+ check_clang :
37
+ cd test ; python -m unittest -v test_base_driver test_clang_driver
38
+
39
+
36
40
clean :
37
41
rm -f wllvm/* .pyc wllvm/* ~
38
42
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- # -*- Coding: UTF-8 -*-
3
2
4
3
__author__ = 'Benjamin Schubert, ben.c.schubert@gmail.com'
5
4
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- # -*- Coding: UTF-8 -*-
2
+
3
3
import os
4
4
from test_base_driver import root_directory , BaseDriverTest
5
5
@@ -22,4 +22,4 @@ def env(self):
22
22
env ["CXX" ] = "wllvm++"
23
23
env ["LLVM_COMPILER" ] = "clang"
24
24
env ["PATH" ] = "{}:{}" .format (root_directory , os .environ ["PATH" ])
25
- return env
25
+ return env
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- # -*- Coding: UTF-8 -*-
2
+
3
3
import os
4
4
from test_base_driver import root_directory , BaseDriverTest
5
5
@@ -24,4 +24,4 @@ def env(self):
24
24
# FIXME find dragonegg path generically
25
25
env ["LLVM_DRAGONEGG_PLUGIN" ] = "/usr/lib/gcc/x86_64-linux-gnu/4.7/plugin/dragonegg.so"
26
26
env ["LLVM_GCC_PREFIX" ] = "llvm-"
27
- return env
27
+ return env
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- """This is the assembler phase.
2
+ """This is the (dragonegg) assembler phase.
3
3
4
4
This variant is only invoked during the second compilation where we
5
5
are building bitcode. The compiler has already been instructed to
15
15
Since we cannot tell gcc what our assember is called, only which
16
16
directory it should look for the assembler "as" in, we have to make a
17
17
"hidden" directory that we can use to pass gcc. It needs to be hidden
18
- since we do not want our assembler to override the users assembler.
18
+ since we have no control over the user's PATH and certainly do not
19
+ want our assembler to accidently override the user's assembler.
19
20
20
21
This should explain:
21
22
22
- .. /dragonegg_as/as
23
+ ./dragonegg_as/as
23
24
24
25
in the pip egg, and in the repository.
25
26
You can’t perform that action at this time.
0 commit comments