-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Revert "[Fuchsia] Support PGO" #126293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "[Fuchsia] Support PGO" #126293
Conversation
This reverts commit 1438c8d.
|
@llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) ChangesReverts llvm/llvm-project#120323 This breaks some internal Fuchsia builders. We can reland again later, once that is addresed. Full diff: https://github.com/llvm/llvm-project/pull/126293.diff 2 Files Affected:
diff --git a/clang/cmake/caches/Fuchsia-stage2-instrumented.cmake b/clang/cmake/caches/Fuchsia-stage2-instrumented.cmake
deleted file mode 100644
index b3c3b63066363c4..000000000000000
--- a/clang/cmake/caches/Fuchsia-stage2-instrumented.cmake
+++ /dev/null
@@ -1,44 +0,0 @@
-# This file sets up a CMakeCache for the second stage of a Fuchsia toolchain build.
-
-include(${CMAKE_CURRENT_LIST_DIR}/Fuchsia-stage2.cmake)
-
-if(NOT APPLE)
- set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
-endif()
-
-set(CLANG_BOOTSTRAP_TARGETS
- check-all
- check-clang
- check-lld
- check-llvm
- clang
- clang-test-depends
- toolchain-distribution
- install-toolchain-distribution
- install-toolchain-distribution-stripped
- install-toolchain-distribution-toolchain
- lld-test-depends
- llvm-config
- llvm-test-depends
- test-depends
- test-suite CACHE STRING "")
-
-get_cmake_property(variableNames VARIABLES)
-foreach(variableName ${variableNames})
- if(variableName MATCHES "^STAGE2_")
- string(REPLACE "STAGE2_" "" new_name ${variableName})
- list(APPEND EXTRA_ARGS "-D${new_name}=${${variableName}}")
- endif()
-endforeach()
-
-set(CLANG_PGO_TRAINING_DEPS
- builtins
- runtimes
- CACHE STRING "")
-
-# Setup the bootstrap build.
-set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
-set(CLANG_BOOTSTRAP_CMAKE_ARGS
- ${EXTRA_ARGS}
- -C ${CMAKE_CURRENT_LIST_DIR}/Fuchsia-stage2.cmake
- CACHE STRING "")
diff --git a/clang/cmake/caches/Fuchsia.cmake b/clang/cmake/caches/Fuchsia.cmake
index 373b7ddd6e3449d..83336589da305d2 100644
--- a/clang/cmake/caches/Fuchsia.cmake
+++ b/clang/cmake/caches/Fuchsia.cmake
@@ -126,16 +126,6 @@ else()
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
set(LIBCXX_HARDENING_MODE "none" CACHE STRING "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
- set(COMPILER_RT_BUILD_LIBFUZZER OFF CACHE BOOL "")
- set(COMPILER_RT_BUILD_PROFILE ON CACHE BOOL "")
- set(COMPILER_RT_BUILD_SANITIZERS OFF CACHE BOOL "")
- set(COMPILER_RT_BUILD_XRAY OFF CACHE BOOL "")
- set(COMPILER_RT_USE_BUILTINS_LIBRARY ON CACHE BOOL "")
- set(COMPILER_RT_DEFAULT_TARGET_ONLY ON CACHE BOOL "")
- set(SANITIZER_CXX_ABI "libc++" CACHE STRING "")
- set(SANITIZER_CXX_ABI_INTREE ON CACHE BOOL "")
- set(SANITIZER_TEST_CXX "libc++" CACHE STRING "")
- set(SANITIZER_TEST_CXX_INTREE ON CACHE BOOL "")
set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
set(RUNTIMES_CMAKE_ARGS "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13;-DCMAKE_OSX_ARCHITECTURES=arm64|x86_64" CACHE STRING "")
endif()
@@ -174,29 +164,34 @@ endif()
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")
-set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "")
set(_FUCHSIA_BOOTSTRAP_TARGETS
- generate-profdata
- stage2
- stage2-toolchain-distribution
- stage2-install-toolchain-distribution
- stage2-install-toolchain-distribution-stripped
- stage2-install-toolchain-distribution-toolchain
- stage2-check-all
- stage2-check-lld
- stage2-check-llvm
- stage2-check-clang
- stage2-test-suite)
+ check-all
+ check-clang
+ check-lld
+ check-llvm
+ check-polly
+ llvm-config
+ clang-test-depends
+ lld-test-depends
+ llvm-test-depends
+ test-suite
+ test-depends
+ toolchain-distribution
+ install-toolchain-distribution
+ install-toolchain-distribution-stripped
+ install-toolchain-distribution-toolchain
+ clang)
if(FUCHSIA_ENABLE_LLDB)
list(APPEND _FUCHSIA_ENABLE_PROJECTS lldb)
list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS
- stage2-check-lldb
- stage2-debugger-distribution
- stage2-install-debugger-distribution
- stage2-install-debugger-distribution-stripped
- stage2-install-debugger-distribution-toolchain)
+ check-lldb
+ lldb-test-depends
+ debugger-distribution
+ install-debugger-distribution
+ install-debugger-distribution-stripped
+ install-debugger-distribution-toolchain)
endif()
set(LLVM_ENABLE_PROJECTS ${_FUCHSIA_ENABLE_PROJECTS} CACHE STRING "")
@@ -205,7 +200,6 @@ set(CLANG_BOOTSTRAP_TARGETS ${_FUCHSIA_BOOTSTRAP_TARGETS} CACHE STRING "")
get_cmake_property(variableNames VARIABLES)
foreach(variableName ${variableNames})
if(variableName MATCHES "^STAGE2_")
- list(APPEND EXTRA_ARGS "-D${variableName}=${${variableName}}")
string(REPLACE "STAGE2_" "" new_name ${variableName})
string(REPLACE ";" "|" value "${${variableName}}")
list(APPEND EXTRA_ARGS "-D${new_name}=${value}")
@@ -215,9 +209,6 @@ endforeach()
# TODO: This is a temporary workaround until we figure out the right solution.
set(BOOTSTRAP_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
-set(LLVM_BUILTIN_TARGETS "default" CACHE STRING "")
-set(LLVM_RUNTIME_TARGETS "default" CACHE STRING "")
-
# Setup the bootstrap build.
set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
set(CLANG_BOOTSTRAP_EXTRA_DEPS
@@ -226,5 +217,5 @@ set(CLANG_BOOTSTRAP_EXTRA_DEPS
CACHE STRING "")
set(CLANG_BOOTSTRAP_CMAKE_ARGS
${EXTRA_ARGS}
- -C ${CMAKE_CURRENT_LIST_DIR}/Fuchsia-stage2-instrumented.cmake
+ -C ${CMAKE_CURRENT_LIST_DIR}/Fuchsia-stage2.cmake
CACHE STRING "")
|
|
Pausing for now, since there may be an easy fix on our side, and this doesn't affect any public builds. |
|
LGTM |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/14311 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/22321 Here is the relevant piece of the build log for the reference |
Reverts llvm#120323 This breaks some internal Fuchsia builders. We can reland again later, once that is addresed.
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/98/builds/1142 Here is the relevant piece of the build log for the reference |
Reverts #120323
This breaks some internal Fuchsia builders. We can reland again later, once that is addresed.