Skip to content

Commit cf679e4

Browse files
git apple-llvm automergerjansvoboda11
git apple-llvm automerger
authored andcommitted
Merge commit '285ec53730ce' from llvm.org/main into next
(cherry picked from commit eb88237)
1 parent ff9b3a3 commit cf679e4

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"directory": "DIR",
4-
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -o DIR/tu.o",
4+
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -Wno-error=invalid-ios-deployment-target -o DIR/tu.o",
55
"file": "DIR/tu.c"
66
}
77
]

llvm/clang/test/ClangScanDeps/diagnostics.c renamed to clang/test/ClangScanDeps/diagnostics.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full 2>&1 >> %t/result.json
77
// RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck %s
88

9-
// Check that the scanner injects '-Wno-error' option and invalid command-line
10-
// arguments like '-target i386-apple-ios14.0-simulator' do not result in error.
9+
// Check that the '-Wno-error=invalid-ios-deployment-target' option is being
10+
// respected and invalid arguments like '-target i386-apple-ios14.0-simulator'
11+
// do not result in an error.
1112

1213
// CHECK-NOT: error:
1314
// CHECK: -[[PREFIX:.*]]

0 commit comments

Comments
 (0)