We purposefully have a bug in the example code, so ask gcc not to detect it for us.

This commit is contained in:
Mark VanderVoord
2026-05-29 11:02:24 -04:00
parent dd70d40adf
commit 1e7adbfa64
+3
View File
@@ -131,6 +131,9 @@ end
def compile(file, defines = [])
build_path = $cfg[:project][:build_root]
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)
execute(cmd_str)
out_file