diff --git a/compiler-rt/test/builtins/Unit/lit.cfg.py b/compiler-rt/test/builtins/Unit/lit.cfg.py --- a/compiler-rt/test/builtins/Unit/lit.cfg.py +++ b/compiler-rt/test/builtins/Unit/lit.cfg.py @@ -85,7 +85,7 @@ # some ARM tests needs call_apsr.s call_apsr_source = os.path.join(builtins_lit_source_dir, 'arm', 'call_apsr.S') march_flag = '-march=' + target_arch -call_apsr_flags = ['-c', march_flag, call_apsr_source] +call_apsr_flags = target_cflags + ['-c', march_flag, call_apsr_source] config.substitutions.append( ("%arm_call_apsr ", \ build_invocation(call_apsr_flags)) )