For the bazel build, we also build all source files with
-fvisibility=hidden.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/common.h | ||
---|---|---|
25 ↗ | (On Diff #481462) | Since we're carefully defining it in the build system I think it makes sense to err if the attribute is not defined otherwise it's complicated to reason about it and debug. #error make sure that LLVM_LIBC_FUNCTION_ATTR is defined in either CMake of Bazel configuration Then we'd need the same logic in CMake. |
utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl | ||
52 | Thx! | |
86 | This should be a defines attribute I think (and above as well) |
Comment Actions
- Confine the change to bazel.
- Use local_defines instead of copts to pass preprocessor defines.
Comment Actions
PTAL
libc/src/__support/common.h | ||
---|---|---|
25 ↗ | (On Diff #481462) | I removed this change now - we will keep the definition of the macro up to the individual build system. The "default" visibility thing is now added only for Bazel. |
utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl | ||
86 | I moved all preprocessor defines to local_defines now. |
Thx!