mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-28 16:01:41 +00:00
测试用例中gcc编译去掉static flag
This commit is contained in:
parent
4ee0cde0d3
commit
b4c1fc1885
@ -29,7 +29,7 @@ class BaseTestCase(TestCase):
|
||||
flags = " "
|
||||
if extra_flags:
|
||||
flags += " ".join(extra_flags)
|
||||
cmd = ("gcc {0} -g -O0 -static -o {1}" + flags).format(os.path.join(path, src_name), exe_path)
|
||||
cmd = ("gcc {0} -g -O0 -o {1}" + flags).format(os.path.join(path, src_name), exe_path)
|
||||
if os.system(cmd):
|
||||
raise AssertionError("compile error, cmd: {0}".format(cmd))
|
||||
return exe_path
|
||||
|
Loading…
Reference in New Issue
Block a user