[libc][NFC] Reduce CMake configuration time

This patch reduces CMake configuration time drastically by removing a non-linear behavior.
Time to execute CMake configure step goes from 45s to 15s.

Differential Revision: https://reviews.llvm.org/D142374
This commit is contained in:
Guillaume Chatelet
2023-01-23 16:52:46 +00:00
parent 5f6813beed
commit fcef706363

View File

@@ -12,6 +12,7 @@ function(collect_object_file_deps target result)
collect_object_file_deps(${dep} dep_targets)
list(APPEND all_deps ${dep_targets})
endforeach(dep)
list(REMOVE_DUPLICATES all_deps)
set(${result} ${all_deps} PARENT_SCOPE)
return()
endif()
@@ -33,6 +34,7 @@ function(collect_object_file_deps target result)
collect_object_file_deps(${dep} dep_targets)
list(APPEND all_deps ${dep_targets})
endforeach(dep)
list(REMOVE_DUPLICATES all_deps)
set(${result} ${all_deps} PARENT_SCOPE)
return()
endif()