Skip to content

[UR][CMake] Fix broken if(TARGET) check for level-zero-loader targets - #22896

Merged
KornevNikita merged 1 commit into
intel:syclfrom
wenju-he:fix-typo-TARGET
Aug 10, 2026
Merged

[UR][CMake] Fix broken if(TARGET) check for level-zero-loader targets#22896
KornevNikita merged 1 commit into
intel:syclfrom
wenju-he:fix-typo-TARGET

Conversation

@wenju-he

@wenju-he wenju-he commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

foreach(TARGET IN ITEMS ze_loader ze_validation_layer ze_tracing_layer ze_null) used if (TARGET TARGET), which checks for a target literally named "TARGET" instead of dereferencing the loop variable. This silently skipped add_ur_target_compile_options()/add_ur_target_link_options() (which apply -no-intel-lib=libirc for IntelLLVM) on ze_loader and its siblings, so icx/icpx compiled level-zero-loader sources with default _intel_fast_memcpy/_intel_fast_memset emission and nothing provided those symbols, causing undefined symbol link errors downstream.

foreach(TARGET IN ITEMS ze_loader ze_validation_layer ze_tracing_layer ze_null)
used `if (TARGET TARGET)`, which checks for a target literally named
"TARGET" instead of dereferencing the loop variable. This silently
skipped add_ur_target_compile_options()/add_ur_target_link_options()
(which apply -no-intel-lib=libirc for IntelLLVM) on ze_loader and its
siblings, so icx/icpx compiled level-zero-loader sources with default
_intel_fast_memcpy/_intel_fast_memset emission and nothing provided
those symbols, causing undefined symbol link errors downstream.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@wenju-he
wenju-he requested a review from a team as a code owner August 7, 2026 07:10
@wenju-he

wenju-he commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@intel/llvm-gatekeepers please merge thanks, e2e fails are unrelated to this PR

@KornevNikita

Copy link
Copy Markdown
Contributor

failure: #21023

@KornevNikita
KornevNikita merged commit 6cb53a8 into intel:sycl Aug 10, 2026
37 of 39 checks passed
@wenju-he
wenju-he deleted the fix-typo-TARGET branch August 10, 2026 10:58
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.

3 participants