Skip to content

Exclude libc math C++ builtins from compiler-rt Bazel overlay - #208861

Merged
zygoloid merged 1 commit into
llvm:mainfrom
zygoloid:bazel-build-exclude-addtf3-cpp
Jul 14, 2026
Merged

Exclude libc math C++ builtins from compiler-rt Bazel overlay#208861
zygoloid merged 1 commit into
llvm:mainfrom
zygoloid:bazel-build-exclude-addtf3-cpp

Conversation

@zygoloid

Copy link
Copy Markdown
Contributor

In CMake, addtf3.cpp is only compiled when COMPILER_RT_USE_LIBC_MATH is ON, replacing addtf3.c. In the Bazel overlay, builtins_generic_srcs globbed all lib/builtins/*.cpp without excluding addtf3.cpp, causing compile failures when not using libc math.

Assisted-by: Gemini via Antigravity

@llvmorg-github-actions llvmorg-github-actions Bot added the bazel "Peripheral" support tier build system: utils/bazel label Jul 11, 2026
In CMake, addtf3.cpp is only compiled when COMPILER_RT_USE_LIBC_MATH is ON,
replacing addtf3.c. In the Bazel overlay, builtins_generic_srcs globbed
all lib/builtins/*.cpp without excluding addtf3.cpp, causing compile failures
when not using libc math.

Assisted-by: Gemini via Antigravity
@zygoloid
zygoloid force-pushed the bazel-build-exclude-addtf3-cpp branch from 73b10f1 to 71c318f Compare July 13, 2026 19:16

@rupprecht rupprecht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is due to a somewhat recent change, #197950

@zygoloid
zygoloid merged commit 89fc46e into llvm:main Jul 14, 2026
13 checks passed
dayanruben pushed a commit to dayanruben/carbon-lang that referenced this pull request Jul 14, 2026
Fix a few API issues. There's also a newly-added file in compiler-rt
that is not supposed to be built by default but is not being excluded
properly by a glob. Added a patch to exclude that and sent
llvm/llvm-project#208861 upstream.
pedroMVicente pushed a commit to pedroMVicente/llvm-project that referenced this pull request Jul 15, 2026
…08861)

In CMake, addtf3.cpp is only compiled when COMPILER_RT_USE_LIBC_MATH is
ON, replacing addtf3.c. In the Bazel overlay, builtins_generic_srcs
globbed all lib/builtins/*.cpp without excluding addtf3.cpp, causing
compile failures when not using libc math.

Assisted-by: Gemini via Antigravity
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants