-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[libc][complex] remove -ffreestanding flag from MPFRUtils compile options #124702
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
Conversation
@llvm/pr-subscribers-libc Author: Shourya Goel (Sh0g0-1758) ChangesFixes buildbot error in #121261 Full diff: https://github.com/llvm/llvm-project/pull/124702.diff 1 Files Affected:
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index 829c2fb2c2f908..8aeee2463dc51f 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -28,6 +28,8 @@ if(LIBC_TESTS_CAN_USE_MPFR)
MPFRUtils.h
)
_get_common_test_compile_options(compile_options "" "")
+ # mpfr/gmp headers do not work with -ffreestanding flag.
+ list(REMOVE_ITEM compile_options "-ffreestanding")
target_compile_options(libcMPFRWrapper PRIVATE -O3 ${compile_options})
add_dependencies(
libcMPFRWrapper
|
Please wait for reviewers for all llvm-libc patches (unless you're reverting to unbreak the build). #124765 seems to be an additional fix required. |
uhuh, I expected it to make the bot green. I was told to not keep the bots red for long and my timezone is the exact opposite to yours (12 hours ahead). So merged it. Will wait from next time. |
I think we can satisfy keeping the bots green AND waiting for reviews by having a "revert early, revert often" policy (which is very common throughout llvm). If you don't need to wait for reviews for reverts, and you're not confident in "forward fixes" then do consider reverting. |
sure thing. Will keep this in mind from now on. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/21123 Here is the relevant piece of the build log for the reference
|
Fixes buildbot error in #121261