mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-05 02:37:52 +00:00
We purposefully have a bug in the example code, so ask gcc not to detect it for us.
This commit is contained in:
@@ -131,6 +131,9 @@ end
|
|||||||
def compile(file, defines = [])
|
def compile(file, defines = [])
|
||||||
build_path = $cfg[:project][:build_root]
|
build_path = $cfg[:project][:build_root]
|
||||||
out_file = File.join(build_path, File.basename(file, C_EXTENSION)) + ($cfg[:extension][:object] || '.o')
|
out_file = File.join(build_path, File.basename(file, C_EXTENSION)) + ($cfg[:extension][:object] || '.o')
|
||||||
|
if $cfg[:tools][:test_compiler][:executable] =~ /gcc/
|
||||||
|
$cfg[:tools][:test_compiler][:arguments] |= ['-Wno-misleading-indentation']
|
||||||
|
end
|
||||||
cmd_str = build_command_string($cfg[:tools][:test_compiler], [file, out_file], defines)
|
cmd_str = build_command_string($cfg[:tools][:test_compiler], [file, out_file], defines)
|
||||||
execute(cmd_str)
|
execute(cmd_str)
|
||||||
out_file
|
out_file
|
||||||
|
|||||||
Reference in New Issue
Block a user