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
|
2022-06-17 23:31:07 +02:00
|
|
|
|
|
|
|
// Let's run that again and verify we're not accumulating redundant entries in the same file.
|
2022-06-24 13:52:27 -07:00
|
|
|
//
|
2022-06-17 23:31:07 +02:00
|
|
|
// RUN: %clang -fdriver-only -o %t/out %s -mtargetos=macos12 -arch arm64 -arch x86_64 -MJ %t/compilation_database.json
|
|
|
|
// RUN: echo EOF >> %t/compilation_database.json
|
|
|
|
|
2022-06-09 16:58:09 +02:00
|
|
|
// RUN: FileCheck --input-file=%t/compilation_database.json %s
|
|
|
|
|
2022-06-23 17:15:13 +02:00
|
|
|
// CHECK-DAG: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_X86_64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_X86_64]]", {{.*}} "--target=x86_64-apple-macosx12.0.0"]},
|
|
|
|
// CHECK-DAG: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_ARM64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_ARM64]]", {{.*}} "--target=arm64-apple-macosx12.0.0"]},
|
|
|
|
// CHECK: EOF
|