-
Notifications
You must be signed in to change notification settings - Fork 463
[Tofino] Try to fix the dependency of mksizes in bf-asm CMake. #5221
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
Conversation
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.
Looks fine, though I must admit to not really understanding how cmake managers depedencies
add_custom_target(bfasm_yaml DEPENDS ${BFASM_GEN_DIR}/lex-yaml.c) | ||
add_dependencies(bfasm_yaml bfasm_uptr) | ||
|
||
set_source_files_properties(${BFASM_GEN_DIR}/lex-yaml.c PROPERTIES GENERATED TRUE) |
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.
should a similar line be added for uptr_sizes.h
as that is also a generated file?
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.
Couple lines down they are actually added, will remove this line.
Beats me, also seems to change based on the CMake version. Just trying to make it explicit as possible that mksizes needs to be generated before the other utilities use it. This version seems to consistently work. |
Signed-off-by: fruffy <[email protected]>
1e4afe5
to
aa0c174
Compare
…g#5221) Signed-off-by: fruffy <[email protected]> Signed-off-by: blackdragoon26 <[email protected]>
…g#5221) Signed-off-by: fruffy <[email protected]> Signed-off-by: blackdragoon26 <[email protected]>
…g#5221) Signed-off-by: fruffy <[email protected]> Signed-off-by: blackdragoon26 <[email protected]>
It can happen that the generation of
uptr_sizes.h
occurs beforemksizes
has been built.