Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing duplicated properties in recursive list. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KiruyaMomochi
Copy link

@KiruyaMomochi KiruyaMomochi commented Aug 15, 2021

Currently, the get_recursive_list function in elec/CMakeLists.txt may produce a list with lots of duplicate items, which may be even longer when building the project with Spack. This can lead to a significant reduction of building speed. Due to this problem, we can't build the package in a reasonable time on our cluster.

In this patch, we try to remove these duplicate items in list before setting the return value. This will make cmake stage much faster.

@jiegec
Copy link

jiegec commented Sep 22, 2021

We are experiencing the same problem in Spack: the length of runtime_includes is 60896989 (seen from gdb). The build time is too long (> 7 hours not completing).

We will try your solution to this problem and feedback if it works.

UPDATE: it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants