[all-commits] [llvm/llvm-project] fb5626: [NFC][libclc] Set MACRO_ARCH to ${ARCH} uncondiona...

Wenju He via All-commits all-commits at lists.llvm.org
Thu Sep 4 16:36:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb5626fdd52905a0f4ade44221f83f0e469b9a8c
      https://github.com/llvm/llvm-project/commit/fb5626fdd52905a0f4ade44221f83f0e469b9a8c
  Author: Wenju He <wenju.he at intel.com>
  Date:   2025-09-05 (Fri, 05 Sep 2025)

  Changed paths:
    M libclc/CMakeLists.txt

  Log Message:
  -----------
  [NFC][libclc] Set MACRO_ARCH to ${ARCH} uncondionally before 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 https://github.com/intel/llvm/pull/19971.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list