mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 10:08:59 +08:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user