Skip to content

Commit

Permalink
wip: fix c disable
Browse files Browse the repository at this point in the history
  • Loading branch information
fkokosinski committed Jul 11, 2024
1 parent f01f628 commit 6a6ed66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ def gcc_compile(test_list, output_dir, isa, mabi, opts, debug_cmd):
if 'gen_opts' in test:
# Disable compressed instruction
if re.search('disable_compressed_instr', test['gen_opts']):
test_isa = re.sub("c", "", test_isa)
# Note that this substitution assumes the cannonical order
# of extensions
test_isa = re.sub(r"(rv.+?)c", r"\1", test_isa)
# If march/mabi is not defined in the test gcc_opts, use the default
# setting from the command line.
if not re.search('march', cmd):
Expand Down

0 comments on commit 6a6ed66

Please sign in to comment.