Break EXPERIMENTAL_USE_OPENJDK9 into {USE,TARGET}_OPENJDK9.
This CL topic breaks the single flag value EXPERIMENTAL_USE_OPENJDK9 into two flags USE_OPENJDK9 and TARGET_OPENJDK9 which are computed independently in config.mk and config.go; this means that later build logic no longer depends on / duplicates the semantics of an unset EXPERIMENTAL_USE_OPENJDK9, because that later build logic can use USE_OPENJDK9 and TARGET_OPENJDK9 instead. Thus, it becomes slightly easier to change this default in future CLs (touching only config.mk and config.go). It also makes it more straightforward to convert .mk files to .bp. This CL also introduces a new allowed value "false" for EXPERIMENTAL_USE_OPENJDK9. This fourth possible value currently has the same semantics as a default/unset EXPERIMENTAL_USE_OPENJDK9, but allows people to explicitly switch back to the old semantics when the default changes. Test: make showcommands core-oj (in environments with EXPERIMENTAL_USE_OPENJDK9 set to "", "1.8", and "true"). Bug: 38177295 Change-Id: Iaade9610b237722e5d175143808b8653b1e98996
Loading
Please register or sign in to comment