Keep previous cmake arguments when using buildstandalonegc (dotnet/coreclr#12108)
authorOmair Majid <omair.majid@gmail.com>
Wed, 14 Jun 2017 05:39:08 +0000 (01:39 -0400)
committerDan Moseley <danmose@microsoft.com>
Wed, 14 Jun 2017 05:39:08 +0000 (22:39 -0700)
commitc571e463fbad0169d395ff6994d6cd2d6644fae3
tree247b0a00518f6cf14336da26ac64dd3d215407eb
parent01b0b4ef63bf5e14f3a5f91d85c5db98bfcc284d
Keep previous cmake arguments when using buildstandalonegc (dotnet/coreclr#12108)

Currently, using buildstandalonegc makes ./build.sh discard any
previous values of __cmakearg set explicitly or implicitly. Preserve
those arguments.

Without this fix, the following invocations behave differently:

    $ ./build.sh ignorewarnings buildstandalonegc verbose

    $ ./build.sh buildstandalonegc ignorewarnings verbose

Commit migrated from https://github.com/dotnet/coreclr/commit/d2f9e21c69e70f1d0edac2392ff95d4670edff6e
src/coreclr/build.sh