File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -465,6 +465,17 @@ function build_llvmCore() {
465
465
fi
466
466
LitVerbose=" -v"
467
467
468
+ InstallTarget=" install"
469
+ if [ " $Phase " -lt " 3" ]; then
470
+ BuildTarget=" clang"
471
+ InstallTarget=" install-clang install-clang-resource-headers"
472
+ # compiler-rt builtins is needed on AIX to have a functional Phase 1 clang.
473
+ if [ " $System " = " AIX" -o " $Phase " != " 1" ]; then
474
+ BuildTarget=" $BuildTarget runtimes"
475
+ InstallTarget=" $InstallTarget install-runtimes"
476
+ fi
477
+ fi
478
+
468
479
redir=" /dev/stdout"
469
480
if [ $do_silent_log == " yes" ]; then
470
481
echo " # Silencing build logs because of -silent-log flag..."
@@ -474,12 +485,12 @@ function build_llvmCore() {
474
485
cd $ObjDir
475
486
echo " # Compiling llvm $Release -$RC $Flavor "
476
487
echo " # ${MAKE} -j $NumJobs $Verbose "
477
- ${MAKE} -j $NumJobs $Verbose \
488
+ ${MAKE} -j $NumJobs $Verbose $BuildTarget \
478
489
2>&1 | tee $LogDir /llvm.make-Phase$Phase -$Flavor .log > $redir
479
490
480
491
echo " # Installing llvm $Release -$RC $Flavor "
481
492
echo " # ${MAKE} install"
482
- DESTDIR=" ${DestDir} " ${MAKE} install \
493
+ DESTDIR=" ${DestDir} " ${MAKE} $InstallTarget \
483
494
2>&1 | tee $LogDir /llvm.install-Phase$Phase -$Flavor .log > $redir
484
495
cd $BuildDir
485
496
}
You can’t perform that action at this time.
0 commit comments