Skip to content

[libclc] Let builtins_remangle_path generating command depend on prepare-${obj_suffix} target #19619

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

Merged

Conversation

wenju-he
Copy link
Contributor

The add_custom_command depends on builtins_lib, but not on prepare-${obj_suffix} target that generates builtins_lib. cmake documentation doesn't mention that the add_custom_command will automatically depends on prepare-${obj_suffix} target.

The dependency was removed in f07c1fa. However, our downstream repo reintroduced it to fix build error in CMPLRLLVM-57824, where builtins_lib is used while still being generated.
This PR adds the dependency back. Then, cmake will create a target-level dependency to make sure prepare-${obj_suffix} target is built before target "remangled-${long_width}-${signedness}_char.${obj_suffix_mangled}".

…are-${obj_suffix} target

The add_custom_command depends on builtins_lib, but not on
prepare-${obj_suffix} target that generates builtins_lib. cmake
documentation doesn't mention that the add_custom_command will
automatically depends on prepare-${obj_suffix} target.

The dependency was removed in f07c1fa. However, our downstream repo
reintroduced it to fix build error in CMPLRLLVM-57824, where builtins_lib is
used while still being generated.
This PR adds the dependency back. Then, cmake will create a target-level
dependency to make sure prepare-${obj_suffix} target is built before
target "remangled-${long_width}-${signedness}_char.${obj_suffix_mangled}".
@wenju-he wenju-he requested a review from a team as a code owner July 29, 2025 00:22
@wenju-he wenju-he requested a review from frasercrmck July 29, 2025 00:22
@wenju-he wenju-he requested a review from tcreech-intel July 29, 2025 00:22
@wenju-he
Copy link
Contributor Author

@intel/llvm-gatekeepers please merge, thanks

@uditagarwal97 uditagarwal97 merged commit c5e4215 into intel:sycl Jul 30, 2025
25 checks passed
@wenju-he wenju-he deleted the remangled-custom-command-dependency branch July 30, 2025 01:25
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.

4 participants