-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[roottest] Fix build races #20883
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
base: master
Are you sure you want to change the base?
[roottest] Fix build races #20883
Conversation
They are important when building with GNU Make, to avoid looking at dependencies but always rebuild the target.
Commit f5fca06 added them for the ROOTTEST_GENERATE_* macros, but we also need them for manually registered build tests.
| add_test(NAME ${GENERATE_DICTIONARY_TEST} | ||
| COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} | ||
| --target ${ATLASLIKEDATAVECTOR_DICTNAME} ${ATLASLIKEDATAVECTOR_LIB}) | ||
| --target ${ATLASLIKEDATAVECTOR_DICTNAME}${fast} ${ATLASLIKEDATAVECTOR_LIB}${fast} -- ${always-make}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About this specific line, IIUC this PR #19344 should practically do the same thing by moving to using ROOTTEST_GENERATE_DICTIONARY which by default uses both ${fast} and ${always_make}. Since that PR is now working (just needs an approval), we could wait to merge that one and you could then rebase this one, or viceversa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's do that. I will then rebase this PR.
| -- ${always-make}) | ||
| # --target ${targetname_libgen}${fast}) | ||
| set_property(TEST roottest-cling-dict-ROOT-8096-build PROPERTY ENVIRONMENT ${ROOTTEST_ENVIRONMENT}) | ||
| if(CMAKE_GENERATOR MATCHES Ninja AND NOT MSVC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me if the AND NOT MSVC part is really needed. I guess I'll have to try
No description provided.