This ensures that one can't easily mix the debug version of the library
and the non-debug version of the library by mistake.
Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/CMakeLists.txt | ||
---|---|---|
191 | I think versioning the debug namespace in the same way we version the non-debug namespace isn't a good idea. It gives the impression that the ABI for the debug mode is stable. I would suggest just using __libcxx_debug_ns as the namespace or use the libc++ version in the mangling to catch these kinds of mismatches as well. Maybe __libcxx_debug_<version>? |
libcxx/CMakeLists.txt | ||
---|---|---|
191 | But I assume we can still use ABI v1 and ABI v2 with debug mode. In which case this needs to remain. |
I think versioning the debug namespace in the same way we version the non-debug namespace isn't a good idea. It gives the impression that the ABI for the debug mode is stable. I would suggest just using __libcxx_debug_ns as the namespace or use the libc++ version in the mangling to catch these kinds of mismatches as well. Maybe __libcxx_debug_<version>?