[flang][cmake] Enable the runtimes in the CMake caches (#205642)
I've tried to introduce that in the PR #198863, but sadly, the buildbots could not cope with this, so I decided to introduce it separately. This patch also fixes the relevant places in the docs.
This commit is contained in:
parent
238dbabecf
commit
d7a29a8e33
5 changed files with 5 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
set(BOLT_PGO_CMAKE_CACHE "PGO" CACHE STRING "")
|
||||
set(LLVM_ENABLE_PROJECTS "bolt;clang;flang;lld" CACHE STRING "")
|
||||
set(LLVM_ENABLE_RUNTIMES "compiler-rt;flang-rt;libunwind;openmp" CACHE STRING "")
|
||||
|
||||
set(CLANG_BOOTSTRAP_TARGETS
|
||||
stage2-clang-bolt
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ set(CMAKE_EXE_LINKER_FLAGS "-Wl,--emit-relocs,-znow" CACHE STRING "")
|
|||
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--emit-relocs,-znow" CACHE STRING "")
|
||||
|
||||
set(LLVM_ENABLE_PROJECTS "bolt;clang;flang" CACHE STRING "")
|
||||
set(LLVM_ENABLE_RUNTIMES "compiler-rt;flang-rt;libunwind;openmp" CACHE STRING "")
|
||||
set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
|
||||
|
||||
# setup toolchain
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
|
||||
set(LLVM_ENABLE_PROJECTS "clang;flang;lld" CACHE STRING "")
|
||||
set(LLVM_ENABLE_RUNTIMES "compiler-rt;flang-rt;libunwind;openmp" CACHE STRING "")
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
|
|||
set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
|
||||
|
||||
set(LLVM_ENABLE_PROJECTS "clang;flang;lld" CACHE STRING "")
|
||||
set(LLVM_ENABLE_RUNTIMES "compiler-rt;flang-rt;libunwind;openmp" CACHE STRING "")
|
||||
|
||||
set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
|
||||
set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE BOOL "")
|
||||
|
|
|
|||
|
|
@ -145,7 +145,6 @@ following command:
|
|||
.. code-block:: console
|
||||
|
||||
$ cmake -G Ninja -C <path to source>/flang/cmake/caches/PGO.cmake \
|
||||
-DLLVM_ENABLE_RUNTIMES="compiler-rt;flang-rt;libunwind;openmp" \
|
||||
<path to source>/llvm
|
||||
|
||||
There are several additional options that the cache file also accepts to modify
|
||||
|
|
@ -183,8 +182,7 @@ following command:
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
$ cmake -G Ninja -C <path to source>/clang/cmake/caches/PGO.cmake \
|
||||
-DLLVM_ENABLE_RUNTIMES="compiler-rt;flang-rt;libunwind;openmp" \
|
||||
$ cmake -G Ninja -C <path to source>/flang/cmake/caches/PGO.cmake \
|
||||
-DBOOTSTRAP_CLANG_PGO_TRAINING_DATA_SOURCE_DIR=<path to llvm-test-suite> \
|
||||
-DBOOTSTRAP_CLANG_PGO_TRAINING_DEPS=runtimes \
|
||||
-DBOOTSTRAP_FLANG_PGO_TRAINING_DATA_SOURCE_DIR=<path to llvm-test-suite> \
|
||||
|
|
|
|||
Loading…
Reference in a new issue