2022-06-13 14:03:02 +02:00
|
|
|
// REQUIRES: system-darwin
|
|
|
|
|
2022-06-09 16:58:09 +02:00
|
|
|
// RUN: rm -rf %t && mkdir -p %t
|
|
|
|
// RUN: %clang -fdriver-only -o %t/out %s -mtargetos=macos12 -arch arm64 -arch x86_64 -MJ %t/compilation_database.json
|
|
|
|
// RUN: FileCheck --input-file=%t/compilation_database.json %s
|
|
|
|
|
|
|
|
// CHECK: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_X86_64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_X86_64]]", {{.*}} "--target=x86_64-apple-macosx12.0.0"]},
|
|
|
|
// CHECK-NEXT: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_ARM64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_ARM64]]", {{.*}} "--target=arm64-apple-macosx12.0.0"]},
|