CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
324 lines
13 KiB
C
324 lines
13 KiB
C
// RUN: %clang -### --target=arm64-apple-darwin %s 2>&1 | FileCheck %s --check-prefix=DARWIN-DEFAULT
|
|
// DARWIN-DEFAULT: "-fdefine-target-os-macros"
|
|
|
|
// RUN: %clang -### --target=arm-none-linux-gnu %s 2>&1 | FileCheck %s --check-prefix=NON-DARWIN-DEFAULT
|
|
// RUN: %clang -### --target=x86_64-pc-win32 %s 2>&1 | FileCheck %s --check-prefix=NON-DARWIN-DEFAULT
|
|
// NON-DARWIN-DEFAULT-NOT: "-fdefine-target-os-macros"
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-macos %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=1 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-ios %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=1 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=1 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-ios-macabi %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=1 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=1 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-ios-simulator %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=1 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=1 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-tvos %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=1 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=1 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-tvos-simulator %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=1 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=1 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-watchos %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=1 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=1 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-watchos-simulator %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=1 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=1 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-xros %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=1 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=1 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-xros-simulator %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=1 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=1 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=1 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-driverkit %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=1 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-firmware %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=1 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=1
|
|
|
|
// RUN: %clang -dM -E --target=x86_64-pc-linux-gnu \
|
|
// RUN: -fdefine-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=0 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=1 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=x86_64-pc-win32 \
|
|
// RUN: -fdefine-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=0 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=1 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=x86_64-pc-windows-gnu \
|
|
// RUN: -fdefine-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=0 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=1 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=0 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// RUN: %clang -dM -E --target=sparc-none-solaris \
|
|
// RUN: -fdefine-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s -DMAC=0 \
|
|
// RUN: -DOSX=0 \
|
|
// RUN: -DIPHONE=0 \
|
|
// RUN: -DIOS=0 \
|
|
// RUN: -DTV=0 \
|
|
// RUN: -DWATCH=0 \
|
|
// RUN: -DVISION=0 \
|
|
// RUN: -DDRIVERKIT=0 \
|
|
// RUN: -DMACCATALYST=0 \
|
|
// RUN: -DEMBEDDED=0 \
|
|
// RUN: -DSIMULATOR=0 \
|
|
// RUN: -DWINDOWS=0 \
|
|
// RUN: -DLINUX=0 \
|
|
// RUN: -DUNIX=1 \
|
|
// RUN: -DFIRMWARE=0
|
|
|
|
// If the firmware OS was valid for a non-Apple vendor,
|
|
// it would be TARGET_OS_MAC=0, TARGET_OS_FIRMWARE=1.
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-macos \
|
|
// RUN: -fno-define-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefix=NEG
|
|
|
|
// RUN: %clang -dM -E --target=arm64-apple-macos \
|
|
// RUN: -fdefine-target-os-macros \
|
|
// RUN: -fno-define-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefix=NEG
|
|
|
|
// RUN: %clang -dM -E --target=x86_64-pc-windows \
|
|
// RUN: -fdefine-target-os-macros \
|
|
// RUN: -fno-define-target-os-macros %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefix=NEG
|
|
|
|
// NEG-NOT: #define TARGET_OS_
|
|
|
|
// CHECK-DAG: #define TARGET_OS_MAC [[MAC]]
|
|
// CHECK-DAG: #define TARGET_OS_OSX [[OSX]]
|
|
// CHECK-DAG: #define TARGET_OS_IPHONE [[IPHONE]]
|
|
// CHECK-DAG: #define TARGET_OS_IOS [[IOS]]
|
|
// CHECK-DAG: #define TARGET_OS_TV [[TV]]
|
|
// CHECK-DAG: #define TARGET_OS_WATCH [[WATCH]]
|
|
// CHECK-DAG: #define TARGET_OS_VISION [[VISION]]
|
|
// CHECK-DAG: #define TARGET_OS_DRIVERKIT [[DRIVERKIT]]
|
|
// CHECK-DAG: #define TARGET_OS_MACCATALYST [[MACCATALYST]]
|
|
// CHECK-DAG: #define TARGET_OS_SIMULATOR [[SIMULATOR]]
|
|
// Deprecated
|
|
// CHECK-DAG: #define TARGET_OS_EMBEDDED [[EMBEDDED]]
|
|
// CHECK-DAG: #define TARGET_OS_NANO [[WATCH]]
|
|
// CHECK-DAG: #define TARGET_IPHONE_SIMULATOR [[SIMULATOR]]
|
|
// CHECK-DAG: #define TARGET_OS_UIKITFORMAC [[MACCATALYST]]
|
|
// Non-darwin OSes
|
|
// CHECK-DAG: #define TARGET_OS_WIN32 [[WINDOWS]]
|
|
// CHECK-DAG: #define TARGET_OS_WINDOWS [[WINDOWS]]
|
|
// CHECK-DAG: #define TARGET_OS_LINUX [[LINUX]]
|
|
// CHECK-DAG: #define TARGET_OS_UNIX [[UNIX]]
|
|
// CHECK-DAG: #define TARGET_OS_FIRMWARE [[FIRMWARE]]
|