Skip to content

Commit

Permalink
Use config_build as fallback config_compilers.
Browse files Browse the repository at this point in the history
If `config_compilers` is not present, `config_build` will always be used
to generate the `Macros` file.

Testing:

    Test suite: `scripts_regression_tests`
    Status: bit for bit
  • Loading branch information
quantheory committed Aug 26, 2016
1 parent def6e59 commit b1fdd18
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 b1fdd18

Please sign in to comment.