Skip to content

Conversation

hvdijk
Copy link
Contributor

@hvdijk hvdijk commented Sep 3, 2025

Because MACRO_ARCH was not getting set for nvptx or amdgcn, the previous value of MACRO_ARCH was wrongly being re-used.

Because MACRO_ARCH was not getting set for nvptx or amdgcn, the previous
value of MACRO_ARCH was wrongly being re-used.
@aelovikov-intel
Copy link
Contributor

Logs look good, merging to unblock CI. Please review post-commit.

@aelovikov-intel aelovikov-intel merged commit db9f837 into intel:sycl Sep 4, 2025
26 of 27 checks passed
wenju-he added a commit to wenju-he/llvm-project that referenced this pull request Sep 4, 2025
Our downstream libclc add a few more targets that customizes build_flags
and opt_flags. Then in each customization block, MACRO_ARCH is defined
to be ${ARCH}.
Hoisting MACRO_ARCH definition out of if-else-end block avoids code
duplication. This also avoids potential error when MACRO_ARCH definition
is forgotten, e.g. in intel/llvm#19971.
@hvdijk hvdijk deleted the set-macro_arch branch September 4, 2025 09:35
wenju-he added a commit to llvm/llvm-project that referenced this pull request Sep 4, 2025
…ing (#156789)

Our downstream libclc add a few more targets that customizes build_flags
and opt_flags. Then in each customization block, MACRO_ARCH is defined
to be ${ARCH}.
Hoisting MACRO_ARCH definition out of if-else-end block avoids code
duplication. This also avoids potential error when MACRO_ARCH definition
is forgotten, e.g. in intel/llvm#19971.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Sep 5, 2025
…re customizing (#156789)

Our downstream libclc add a few more targets that customizes build_flags
and opt_flags. Then in each customization block, MACRO_ARCH is defined
to be ${ARCH}.
Hoisting MACRO_ARCH definition out of if-else-end block avoids code
duplication. This also avoids potential error when MACRO_ARCH definition
is forgotten, e.g. in intel/llvm#19971.
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