Skip to content

Commit 2748c49

Browse files
committed
Merge pull request #20 from SRI-CSL/master
issue #19
2 parents e14a5b7 + a3abca8 commit 2748c49

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

README-freeBSD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ to your shell startup (in '~/.profile' for bash):
6767

6868
export LLVM_HOME=/usr/local/llvm-3.3
6969

70-
Get LLVM and Clang version 3.5:
70+
Get LLVM and Clang version 3.3:
7171

7272
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_33 llvm
7373
cd llvm/tools

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ In addition to the above environment variables the following can be optionally u
5454
variable.
5555
Example `LLVM_COMPILER_PATH=/home/user/llvm_and_clang/Debug+Asserts/bin`.
5656

57+
* `WLLVM_CONFIGURE_ONLY` can be set to anything, when set `wllvm` and `wllvm++`
58+
will not carry out the second phase that involves the production of bitcode.
59+
This may prevent configuration errors being cause by the unexpected production
60+
of the hidden bitcode files.
61+
5762
Example building bitcode module
5863
===============================
5964

@@ -88,6 +93,15 @@ Example building an Operating System
8893
To see how to build freeBSD 10.0 from scratch check out the guide
8994
[here.](../master/README-freeBSD.md)
9095

96+
97+
Example configuring without building bitcode
98+
================================
99+
100+
101+
WLLVM_CONFIGURE_ONLY=1 CC=wllvm ./configure
102+
CC=wllvm make
103+
104+
91105
Debugging
92106
=========
93107

wllvm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# library or executable.
99

1010
import sys
11+
import os
1112
from driver.utils import *
1213
import driver.logconfig
1314

@@ -16,5 +17,7 @@ cmd = cmd[1:]
1617

1718
builder = getBuilder(cmd, False)
1819
buildObject(builder)
19-
buildAndAttachBitcode(builder)
20+
if not os.environ.get('WLLVM_CONFIGURE_ONLY', False):
21+
buildAndAttachBitcode(builder)
22+
2023

wllvm++

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# library or executable.
99

1010
import sys
11+
import os
1112
from driver.utils import *
1213
import driver.logconfig
1314

@@ -16,4 +17,5 @@ cmd = cmd[1:]
1617

1718
builder = getBuilder(cmd, True)
1819
buildObject(builder)
19-
buildAndAttachBitcode(builder)
20+
if not os.environ.get('WLLVM_CONFIGURE_ONLY', False):
21+
buildAndAttachBitcode(builder)

0 commit comments

Comments
 (0)