For the bazel build, we also build all source files with
-fvisibility=hidden.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/common.h | ||
---|---|---|
25 | 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 | ||
51 | Thx! | |
81 | This should be a defines attribute I think (and above as well) |
- Confine the change to bazel.
- Use local_defines instead of copts to pass preprocessor defines.
PTAL
libc/src/__support/common.h | ||
---|---|---|
25 | 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 | ||
81 | I moved all preprocessor defines to local_defines now. |
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.
Then we'd need the same logic in CMake.