From 231c6b09f8631e41ede0363a41291255e9b6c2f5 Mon Sep 17 00:00:00 2001 From: cf_zhao Date: Wed, 14 Dec 2022 10:32:07 +0800 Subject: [PATCH] [Build] Add several options to slim the install folder. --- build.sh | 46 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 4fed7989a657..7b6b7908abbd 100755 --- a/build.sh +++ b/build.sh @@ -7,11 +7,15 @@ CXX_COMPILER_PATH=g++ # Initialize our own variables: buildtype=RelWithDebInfo backends="ARM;AArch64;X86" +enabled_projects="clang;lld;compiler-rt;openmp;clang-tools-extra" +embedded_toolchain="0" split_dwarf=on use_ccache="0" do_install="0" clean=0 unit_test="" +install="install" +install_toolchain_only="0" verbose="" dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" build_dir_name="build" @@ -38,16 +42,19 @@ usage() { cat <