Suuports clang compiler
[anna.git] / SConstruct
index 2db7690..fd6ba85 100644 (file)
@@ -18,7 +18,15 @@ target_opt_bin = os.path.join (opt_bin, "anna")
 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"
         
@@ -52,7 +60,7 @@ if int(release):
   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)