diff --git a/weave/base_info.py b/weave/base_info.py index 9469be4612a4..7e2b1ad354c5 100644 --- a/weave/base_info.py +++ b/weave/base_info.py @@ -135,7 +135,7 @@ def module_init_code(self): def unique_values(lst): all_values = [] for value in lst: - if value not in all_values: + if value not in all_values or value == '-framework': all_values.append(value) return all_values diff --git a/weave/c_spec.py b/weave/c_spec.py index 3cad40c1c929..cc61058e3e12 100644 --- a/weave/c_spec.py +++ b/weave/c_spec.py @@ -119,9 +119,9 @@ def generate_build_info(self): for warning in self.warnings: info.add_warning(warning) for arg in self.extra_compile_args: - info.add_extra_compile_args(arg) + info.add_extra_compile_arg(arg) for arg in self.extra_link_args: - info.add_extra_link_args(arg) + info.add_extra_link_arg(arg) return info def type_match(self,value): diff --git a/weave/inline_tools.py b/weave/inline_tools.py index 2066239a62b4..4a7f44e19411 100644 --- a/weave/inline_tools.py +++ b/weave/inline_tools.py @@ -176,7 +176,7 @@ def inline(code,arg_names=[],local_dict = None, global_dict = None, compiling. On windows, it understands 'msvc' and 'gcc' as well as all the compiler names understood by distutils. On Unix, it'll only understand the values - understoof by distutils. ( I should add 'gcc' though + understood by distutils. ( I should add 'gcc' though to this). On windows, the compiler defaults to the Microsoft C++ @@ -207,7 +207,7 @@ def inline(code,arg_names=[],local_dict = None, global_dict = None, pasted at the end of a #include statement in the C++ code. customize -- optional. base_info.custom_info object. An alternative - way to specifiy support_code, headers, etc. needed by + way to specify support_code, headers, etc. needed by the function see the compiler.base_info module for more details. (not sure this'll be used much). type_converters -- optional. list of type converters. These