From 1882af62825e96c1de11b402d9b0fa1225acb44f Mon Sep 17 00:00:00 2001 From: HIGUCHI Yuta Date: Tue, 19 Feb 2013 13:39:05 +0900 Subject: [PATCH] I compile step definition should build in trema C compatible options. --- features/step_definitions/misc_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/misc_steps.rb b/features/step_definitions/misc_steps.rb index 3c819204e..65b483c63 100644 --- a/features/step_definitions/misc_steps.rb +++ b/features/step_definitions/misc_steps.rb @@ -17,7 +17,7 @@ Given /^I compile "(.*?)" into "(.*?)"$/ do | c_source, executable | - run_simple "gcc #{ c_source } #{`trema-config -c -l`} -o #{ executable }", true + run_simple "gcc #{ c_source } -std=gnu99 -D_GNU_SOURCE -fno-strict-aliasing #{`trema-config -c -l`} -o #{ executable }", true end