aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index f4374bf3f..607471e27 100755
--- a/configure.py
+++ b/configure.py
@@ -1053,6 +1053,9 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
for mod in modules:
if src in mod.sources():
if mod.need_isa != None:
+ if mod.need_isa not in cc.isa_flags:
+ raise Exception('Compiler does not support %s, required by %s' % (
+ mod.need_isa, src))
return cc.isa_flags[mod.need_isa]
return ''
@@ -1061,12 +1064,12 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
"""
def build_commands(sources, obj_dir, flags):
for (obj_file,src) in zip(objectfile_list(sources, obj_dir), sources):
- yield '%s: %s\n\t$(CXX) %s%s $(%s_FLAGS) %s %s$? %s$@\n' % (
+ yield '%s: %s\n\t$(CXX) %s $(%s_FLAGS) %s%s %s$? %s$@\n' % (
obj_file, src,
+ isa_specific_flags(cc, src),
+ flags,
cc.add_include_dir_option,
build_config.include_dir,
- flags,
- isa_specific_flags(cc, src),
cc.compile_option,
cc.output_to_option)