Skip to content

Revert f9146ccbe940d8b8eb15e7686a511a28eb0abc6b #131656

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

Merged

Conversation

vonosmas
Copy link
Contributor

This reverts commit f9146cc ([libc][bazel] explicitly use system-provided errno in Bazel builds. (#130663))

This change causes problems in Bazel builds where system errno is set to non-zero before the tests even begin to run - see PR #131650 for the disucssion on how to address this.

…uilds. (llvm#130663)"

This reverts commit f9146cc.

This change causes problems in Bazel builds where system errno is set to
non-zero before the tests even begin to run - see PR llvm#131650 for the
disucssion on how to address this.
@vonosmas vonosmas requested a review from lntue March 17, 2025 18:30
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Mar 17, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 17, 2025

@llvm/pr-subscribers-libc

Author: Alexey Samsonov (vonosmas)

Changes

This reverts commit f9146cc ([libc][bazel] explicitly use system-provided errno in Bazel builds. (#130663))

This change causes problems in Bazel builds where system errno is set to non-zero before the tests even begin to run - see PR #131650 for the disucssion on how to address this.


Full diff: https://github.com/llvm/llvm-project/pull/131656.diff

1 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl (-5)
diff --git a/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl b/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
index 672ce8c0723ec..f65da9e98226b 100644
--- a/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/libc_configure_options.bzl
@@ -44,11 +44,6 @@ LIBC_CONFIGURE_OPTIONS = [
     # "LIBC_COPT_STRTOFLOAT_DISABLE_EISEL_LEMIRE",
     # "LIBC_COPT_STRTOFLOAT_DISABLE_SIMPLE_DECIMAL_CONVERSION",
 
-    # Documentation in libc/src/errno/...
-    # Since we're only using Bazel for overlay build for now, explicitly
-    # enforce using the system-provided errno in both tests and release build.
-    "LIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SYSTEM",
-
     # Documentation in libc/src/__support/libc_assert.h
     # "LIBC_COPT_USE_C_ASSERT",
 ]

@vonosmas vonosmas merged commit 279e82f into llvm:main Mar 17, 2025
10 of 12 checks passed
@vonosmas vonosmas deleted the f9146ccbe940d8b8eb15e7686a511a28eb0abc6b-revert branch March 17, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel libc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants