[libc-commits] [PATCH] D159112: [libc] POC for namespace customization
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Aug 31 12:50:17 PDT 2023
sivachandra added a comment.
How do you want to take this forward?
================
Comment at: libc/CMakeLists.txt:68
+if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
+ add_definitions("-DLIBC_NAMESPACE=${LLVM_LIBC_NAMESPACE}")
+elseif(MSVC)
----------------
If we use `add_definitions`, we shouldn't use `-D` or the `/D` syntax. CMake will use the appropriate way to add a macro-def based on the compiler we use.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159112/new/
https://reviews.llvm.org/D159112
More information about the libc-commits
mailing list