File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ CXX_COMPILER_PATH=g++
7
7
# Initialize our own variables:
8
8
buildtype=RelWithDebInfo
9
9
backends=" all"
10
+ build_for_openeuler=" 0"
10
11
enabled_projects=" clang;lld;compiler-rt;openmp;clang-tools-extra"
11
12
embedded_toolchain=" 0"
12
13
split_dwarf=on
69
70
# Process command-line options. Remember the options for passing to the
70
71
# containerized build script.
71
72
containerized_opts=()
72
- while getopts :b:d:cCehiI :j:orstvfX: optchr; do
73
+ while getopts :b:d:cCeEhiI :j:orstvfX: optchr; do
73
74
case " $optchr " in
74
75
b)
75
76
buildtype=" $OPTARG "
@@ -105,6 +106,10 @@ while getopts :b:d:cCehiI:j:orstvfX: optchr; do
105
106
embedded_toolchain=" 1"
106
107
containerized_opts+=(-$optchr )
107
108
;;
109
+ E)
110
+ build_for_openeuler=" 1"
111
+ containerized_opts+=(-$optchr )
112
+ ;;
108
113
h)
109
114
usage
110
115
exit
@@ -304,6 +309,11 @@ if [ $install_toolchain_only == "1" ]; then
304
309
CMAKE_OPTIONS=" $CMAKE_OPTIONS -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON"
305
310
fi
306
311
312
+ if [ $build_for_openeuler == " 1" ]; then
313
+ echo " Build for openEuler"
314
+ CMAKE_OPTIONS=" $CMAKE_OPTIONS -DBUILD_FOR_OPENEULER=ON"
315
+ fi
316
+
307
317
# Build and install
308
318
if [ $clean -eq 1 -a -e " $install_prefix " ]; then
309
319
rm -rf " $install_prefix "
You can’t perform that action at this time.
0 commit comments