diff options
author | Egor Bogatov <egorbo@gmail.com> | 2019-10-04 18:27:01 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2019-10-04 18:27:01 +0300 |
commit | 26754eecff93d568f4531e31c7c1bce3202645b1 (patch) | |
tree | 9b20351ec2d1297ec0f01b711341b1dec7dbe987 /netcore/build.sh | |
parent | d1b3ee2e3234657044bc5d0f4a9facf0fa06599c (diff) |
[llvm] Propogate --enable-llvm-asserts to llvm/build.mk (#17149)
* fix Enable llvm asserts
* fix chmod
Diffstat (limited to 'netcore/build.sh')
-rwxr-xr-x | netcore/build.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/netcore/build.sh b/netcore/build.sh index cd9fa818794..5e83023d675 100755 --- a/netcore/build.sh +++ b/netcore/build.sh @@ -34,6 +34,7 @@ force_rebuild=false test=false skipmscorlib=false skipnative=false +llvm=false autogen_params='' while [[ $# > 0 ]]; do @@ -64,7 +65,7 @@ while [[ $# > 0 ]]; do skipnative=true ;; -llvm) - autogen_params="$autogen_params --enable-llvm" + llvm=true ;; -p:*|/p:*) properties="$properties $1" @@ -98,6 +99,11 @@ elif [[ "$configuration" == "Release" ]]; then EXTRA_CXXFLAGS="-O2 -g" fi +if [ "$llvm" = "true" ]; then + git submodule update --init -- ../external/llvm + autogen_params="$autogen_params --enable-llvm" +fi + # run .././autogen.sh only once or if "--rebuild" argument is provided if [[ "$force_rebuild" == "true" || ! -f .configured ]]; then (cd .. && ./autogen.sh --with-core=only $autogen_params CFLAGS="$EXTRA_CFLAGS" CXXFLAGS="$EXTRA_CXXFLAGS") |