Fix buildlib arg order when called as a subprocess #136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
The argument order in the buildlib function was wrong when it was called as a subprocess in the course of building the CDEPS shared library.
As noted in ESMCI/cime#4034, this was using argument parsing that is appropriate for components, which (confusingly!) differs from the order of arguments in calls to libraries' buildlibs. The CDEPS shared library is built using the library code, not the component code.
However, this was made trickier by the fact that the same buildlib was being used for both the CDEPS shared library build and the individual data model builds. The latter need the original argument order. It seemed like there was little value gained by using the same buildlib for both, so I have split this into two different files in this PR.
I have confirmed that this works by introducing the following temporary diffs to force the CDEPS buildlibs to be called as subprocesses:
Specific notes
Contributors other than yourself, if any:
CMEPS Issues Fixed (include github issue #):
Resolves #104
Are there dependencies on other component PRs
Are changes expected to change answers?
Any User Interface Changes (namelist or namelist defaults changes)?
Testing performed:
(required) aux_cdeps
(optional) CESM prealpha test
Hashes used for testing: