Always initialize compiler_options before sanity_check

This is because sanity checking wants to use CFLAGS and friends.
pull/5128/head
John Ericson 6 years ago
parent 507b1dc40e
commit f53f58f54e
  1. 2
      run_project_tests.py

@ -460,6 +460,7 @@ def have_objc_compiler():
return False
if not objc_comp:
return False
env.coredata.process_new_compilers('objc', objc_comp, None, env)
try:
objc_comp.sanity_check(env.get_scratch_dir(), env)
except mesonlib.MesonException:
@ -475,6 +476,7 @@ def have_objcpp_compiler():
return False
if not objcpp_comp:
return False
env.coredata.process_new_compilers('objcpp', objcpp_comp, None, env)
try:
objcpp_comp.sanity_check(env.get_scratch_dir(), env)
except mesonlib.MesonException:

Loading…
Cancel
Save