Temporary fix: Clang is the default compiler on Mac OS X.
This commit is contained in:
		| @@ -27,6 +27,7 @@ | |||||||
| """ | """ | ||||||
| import imp | import imp | ||||||
| import os | import os | ||||||
|  | import platform | ||||||
|  |  | ||||||
| from llnl.util.lang import memoized, list_modules | from llnl.util.lang import memoized, list_modules | ||||||
| from llnl.util.filesystem import join_path | from llnl.util.filesystem import join_path | ||||||
| @@ -47,7 +48,11 @@ | |||||||
| _required_instance_vars = ['cc', 'cxx', 'f77', 'fc'] | _required_instance_vars = ['cc', 'cxx', 'f77', 'fc'] | ||||||
|  |  | ||||||
| # TODO: customize order in config file | # TODO: customize order in config file | ||||||
| _default_order = ['gcc', 'intel', 'pgi', 'clang', 'xlc'] | if platform.system() == 'Darwin': | ||||||
|  |     _default_order = ['clang', 'gcc', 'intel'] | ||||||
|  | else: | ||||||
|  |     _default_order = ['gcc', 'intel', 'pgi', 'clang', 'xlc'] | ||||||
|  |  | ||||||
|  |  | ||||||
| def _auto_compiler_spec(function): | def _auto_compiler_spec(function): | ||||||
|     def converter(cspec_like, *args, **kwargs): |     def converter(cspec_like, *args, **kwargs): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Todd Gamblin
					Todd Gamblin