summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmon Dadgar <armon.dadgar@gmail.com>2014-02-27 20:06:54 (GMT)
committerArmon Dadgar <armon.dadgar@gmail.com>2014-02-27 20:06:54 (GMT)
commitf3d5c90c1d8c350d390922ae20d752c6ea77487b (patch)
tree2e2ec13419049e48c3df4331919c8fb2e60dbdde
parentf07cf5f96cc4cd6480314ea663dbddcc41898b5f (diff)
downloadlibart-f3d5c90c1d8c350d390922ae20d752c6ea77487b.zip
libart-f3d5c90c1d8c350d390922ae20d752c6ea77487b.tar.gz
libart-f3d5c90c1d8c350d390922ae20d752c6ea77487b.tar.bz2
Actually bother to use the CC environmental variable
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 903ea15..d305aa4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1,4 +1,11 @@
+import os
+
env_with_err = Environment(CCFLAGS = '-g -std=c99 -D_GNU_SOURCE -Wall -Werror -O3 -pthread -Isrc/')
+
+# Copy the CC environment variable
+if "CC" in os.environ:
+ env_with_err["CC"] = os.environ["CC"]
+
objs = env_with_err.Object('src/art', 'src/art.c')
test_runner = env_with_err.Program('test_runner', objs + ["tests/runner.c"], LIBS=["check"])
Default(test_runner)