[libc-commits] [libc] 0a3d946 - [libc][cmake] Make `add_tablegen` calls match others
John Ericson via libc-commits
libc-commits at lists.llvm.org
Mon Jan 24 10:36:41 PST 2022
Author: John Ericson
Date: 2022-01-24T18:36:37Z
New Revision: 0a3d946e7bb4cd3519370c879dac7cbb58d13a55
URL: https://github.com/llvm/llvm-project/commit/0a3d946e7bb4cd3519370c879dac7cbb58d13a55
DIFF: https://github.com/llvm/llvm-project/commit/0a3d946e7bb4cd3519370c879dac7cbb58d13a55.diff
LOG: [libc][cmake] Make `add_tablegen` calls match others
in all the other `add_tablegen` calls, the project name is so transformed so it
can be a prefix of a CMake variable. I think it is better to do do that here
too for consistency.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D117979
Added:
Modified:
libc/utils/HdrGen/PrototypeTestGen/CMakeLists.txt
libc/utils/tools/WrapperGen/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/HdrGen/PrototypeTestGen/CMakeLists.txt b/libc/utils/HdrGen/PrototypeTestGen/CMakeLists.txt
index c90fde76dd58..9e25c21c6b35 100644
--- a/libc/utils/HdrGen/PrototypeTestGen/CMakeLists.txt
+++ b/libc/utils/HdrGen/PrototypeTestGen/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_tablegen(libc-prototype-testgen llvm-libc
+add_tablegen(libc-prototype-testgen LLVM_LIBC
PrototypeTestGen.cpp
)
target_link_libraries(libc-prototype-testgen PRIVATE LibcTableGenUtil)
diff --git a/libc/utils/tools/WrapperGen/CMakeLists.txt b/libc/utils/tools/WrapperGen/CMakeLists.txt
index fe8ffcce94a5..5fd78591e9b3 100644
--- a/libc/utils/tools/WrapperGen/CMakeLists.txt
+++ b/libc/utils/tools/WrapperGen/CMakeLists.txt
@@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS Support)
-add_tablegen(libc-wrappergen llvm-libc
+add_tablegen(libc-wrappergen LLVM_LIBC
Main.cpp
)
More information about the libc-commits
mailing list