]> git.mdlowis.com Git - proto/gir.git/commitdiff
Enabled optimization
authorMike D. Lowis <mike.lowis@gentex.com>
Tue, 9 Jun 2015 13:52:06 +0000 (09:52 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Tue, 9 Jun 2015 13:52:06 +0000 (09:52 -0400)
build.rb
source/main.c

index d1a5c559bda356eabf3ccdd1b17063b61cac3057..2893e8ae2e6758bc3ef9646f805b7eec8791b7f5 100755 (executable)
--- a/build.rb
+++ b/build.rb
@@ -6,7 +6,7 @@ require './modules/build-system/setup'
 #------------------------------------------------------------------------------
 # Define the default compiler environment
 main_env = BuildEnv.new do |env|
-  env["CFLAGS"]  += ['-Wall', '-Wextra', '--std=c99', '--pedantic']
+  env["CFLAGS"]  += ['-O3', '-Wall', '-Wextra', '--std=c99', '--pedantic']
   env["CPPPATH"] += Dir['modules/libcds/source/**/'] + [ ]
 end
 
index 11365b25509fc5205aa3596b556495c9184b1a7f..ffb29e49112b07a8a2fe75d9976e2e62c58916ac 100644 (file)
@@ -113,6 +113,9 @@ void strbuf_putc(strbuf_t* buf, int ch);
 void strbuf_print(strbuf_t* buf, const char* str);
 char* strbuf_string(strbuf_t* buf);
 
+// Main Routine
+int main(int argc, char** argv);
+
 /* Parsing Rules
  *****************************************************************************/
 static void expression(void)