Files
swift-mirror/test/ClangImporter/windows-sdk-macros.swift
Saleem Abdulrasool e012dc76f7 ClangImporter: setup macros for WinSDK import
Windows SDK requires that the platform target is identified.
Unfortunately, `cl` does not specify the value, so we cannot actually
specify the value in the clang frontend.  Specify this in the swift
frontend as this obscures the clang invocation.
2019-01-10 16:58:37 -08:00

15 lines
788 B
Swift

// REQUIRES: CODEGENERATOR=AArch64
// REQUIRES: CODEGENERATOR=ARM
// REQUIRES: CODEGENERATOR=X86
// RUN: %swift -target i686-unknown-windows-msvc -typecheck %s -parse-stdlib -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix CHECK-X86
// RUN: %swift -target x86_64-unknown-windows-msvc -typecheck %s -parse-stdlib -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix CHECK-X64
// RUN: %swift -target thumbv7-unknown-windows-msvc -typecheck %s -parse-stdlib -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix CHECK-ARM
// RUN: %swift -target aarch64-unknown-windows-msvc -typecheck %s -parse-stdlib -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix CHECK-ARM64
// CHECK-X86: -D_X86_
// CHECK-X64: -D_AMD64_
// CHECK-ARM: -D_ARM_
// CHECK-ARM64: -D_ARM64_