File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ set(LLVM_ENABLE_PROJECTS ${STAGE1_PROJECTS} CACHE STRING "")
8282# stage2-instrumented and Final Stage Config:
8383# Options that need to be set in both the instrumented stage (if we are doing
8484# a pgo build) and the final stage.
85+ set_instrument_and_final_stage_var(CMAKE_POSITION_INDEPENDENT_CODE "ON" STRING )
8586set_instrument_and_final_stage_var(LLVM_ENABLE_LTO "${LLVM_RELEASE_ENABLE_LTO} " STRING )
8687if (LLVM_RELEASE_ENABLE_LTO)
8788 set_instrument_and_final_stage_var(LLVM_ENABLE_LLD "ON" BOOL )
Original file line number Diff line number Diff line change @@ -353,8 +353,7 @@ function build_with_cmake_cache() {
353353 env CC=" $c_compiler " CXX=" $cxx_compiler " \
354354 cmake -G " $generator " -B $CMakeBuildDir -S $SrcDir /llvm \
355355 -C $SrcDir /clang/cmake/caches/Release.cmake \
356- -DCLANG_BOOTSTRAP_PASSTHROUGH=" CMAKE_POSITION_INDEPENDENT_CODE;LLVM_LIT_ARGS" \
357- -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
356+ -DCLANG_BOOTSTRAP_PASSTHROUGH=" LLVM_LIT_ARGS" \
358357 -DLLVM_LIT_ARGS=" -j $NumJobs $LitVerbose " \
359358 $ExtraConfigureFlags
360359 2>&1 | tee $LogDir /llvm.configure-$Flavor .log
You can’t perform that action at this time.
0 commit comments