Skip to content

Commit

Permalink
Merge pull request #466 from ESMCI/santos/config-build-fallback
Browse files Browse the repository at this point in the history
Use `config_build` as fallback `config_compilers`.
  • Loading branch information
jedwards4b authored Aug 26, 2016
2 parents def6e59 + b1fdd18 commit 82a8376
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/python/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,11 @@ def _create_caseroot_tools(self):

# Create Macros file.
machine = self.get_value("MACH")
if os.getenv("CIME_USE_CONFIG_BUILD") == "TRUE":
files = Files()
files = Files()
# Use config_build if the environment variable is set, or if there is no
# config_compilers file.
if os.getenv("CIME_USE_CONFIG_BUILD") == "TRUE" or \
files.get_value("COMPILERS_SPEC_FILE") is None:
build_file = files.get_value("BUILD_SPEC_FILE")
machobj = Machines(machine=machine, files=files)
macro_maker = Build(machobj)
Expand Down

0 comments on commit 82a8376

Please sign in to comment.