Skip to content

Commit a3abca8

Browse files
committed
tentative solution to issue #19. an issue I can't reproduce :-(
1 parent 7cb3ae4 commit a3abca8

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

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)