Skip to content

Commit bb9b50b

Browse files
authored
Merge pull request #23 from chkp-eyalit/master
[Bugfix] Restore arm-thumb support
2 parents 3f1696c + 8918c88 commit bb9b50b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

utils/scout_compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ def generateCompilationFlags(compile_flags, link_flags, logger):
303303
else:
304304
basic_compile_flags += ['mbig-endian']
305305
basic_link_flags += ['EB']
306+
# Thumb
307+
basic_compile_flags += ['mthumb'] if (flag_arc_thumb in config_flags) else []
308+
306309
# Endianness - Mips
307310
elif config_arc == flag_arc_mips:
308311
if config_endianness == flag_little_endian:
@@ -312,9 +315,6 @@ def generateCompilationFlags(compile_flags, link_flags, logger):
312315
basic_compile_flags += ['EB']
313316
basic_link_flags += ['EB']
314317

315-
# Thumb
316-
basic_compile_flags += ['mthumb'] if (flag_arc_thumb in config_flags) else []
317-
318318
# PC Environment
319319
if config_env == flag_env_pc:
320320
basic_compile_flags += basic_pc_compile_flags

0 commit comments

Comments
 (0)