projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suuports clang compiler
[anna.git]
/
SConstruct
diff --git
a/SConstruct
b/SConstruct
index
2db7690
..
fd6ba85
100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-18,7
+18,15
@@
target_opt_bin = os.path.join (opt_bin, "anna")
release = ARGUMENTS.get ('release', 0)
# Environment
release = ARGUMENTS.get ('release', 0)
# Environment
-env = Environment ()
+
+# Using clang, uncomment following:
+env = Environment(CXX = 'clang++')
+env.Append (CCFLAGS = '-DIS_CLANG')
+env.Append (CXXFLAGS = '-Wno-parentheses-equality')
+
+# Using c++, uncomment following:
+#env = Environment ()
+
#oracle_includes = os.environ["ORACLE_HOME"] + "/include"
oracle_includes = "/usr/lib/oracle/12.1/client64/include"
#oracle_includes = os.environ["ORACLE_HOME"] + "/include"
oracle_includes = "/usr/lib/oracle/12.1/client64/include"
@@
-52,7
+60,7
@@
if int(release):
env.Append (VARIANT = variant)
else:
variant='debug'
env.Append (VARIANT = variant)
else:
variant='debug'
- env.Append (CCFLAGS = '-g -O0
-D_DEBUG
')
+ env.Append (CCFLAGS = '-g -O0')
env.Append (LIBPATH = os.path.join (current_directory, variant))
env.Append (VARIANT = variant)
env.Append (LIBPATH = os.path.join (current_directory, variant))
env.Append (VARIANT = variant)