[PATCH] D142256: LLVMProcessSources.cmake: Improve PARTIAL_SOURCES_INTENDED.
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 12 03:13:33 PST 2023
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG36adb82c251d: LLVMProcessSources.cmake: Improve PARTIAL_SOURCES_INTENDED. (authored by chapuni).
Changed prior to commit:
https://reviews.llvm.org/D142256?vs=490977&id=496748#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142256/new/
https://reviews.llvm.org/D142256
Files:
llvm/cmake/modules/LLVMProcessSources.cmake
Index: llvm/cmake/modules/LLVMProcessSources.cmake
===================================================================
--- llvm/cmake/modules/LLVMProcessSources.cmake
+++ llvm/cmake/modules/LLVMProcessSources.cmake
@@ -59,9 +59,7 @@
function(llvm_process_sources OUT_VAR)
cmake_parse_arguments(ARG "PARTIAL_SOURCES_INTENDED" "" "ADDITIONAL_HEADERS;ADDITIONAL_HEADER_DIRS" ${ARGN})
set(sources ${ARG_UNPARSED_ARGUMENTS})
- if (NOT ARG_PARTIAL_SOURCES_INTENDED)
- llvm_check_source_file_list(${sources})
- endif()
+ llvm_check_source_file_list(${sources})
# This adds .td and .h files to the Visual Studio solution:
add_td_sources(sources)
@@ -90,6 +88,12 @@
file(GLOB globbed *.c *.cpp)
endif()
+ set_property(DIRECTORY APPEND PROPERTY LLVM_SOURCE_FILES ${listed})
+ if (ARG_PARTIAL_SOURCES_INTENDED) # llvm_process_source's scope
+ return()
+ endif()
+ get_directory_property(listed LLVM_SOURCE_FILES)
+
foreach(g ${globbed})
get_filename_component(fn ${g} NAME)
if(ARG_SOURCE_DIR)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142256.496748.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230212/e4f35bcb/attachment.bin>
More information about the llvm-commits
mailing list