File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RESOURCE_DIR="$CODEQL_EXTRACTOR_SWIFT_ROOT/resource-dir/$CODEQL_PLATFORM"
9
9
export CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS=${CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS:- out: text: no_logs,out: console: info}
10
10
for src in * .swift; do
11
11
env=()
12
- opts=(-resource-dir " $RESOURCE_DIR " -typecheck -primary-file " $src " )
12
+ opts=(-resource-dir " $RESOURCE_DIR " -c -primary-file " $src " )
13
13
opts+=($( sed -n ' 1 s=//codeql-extractor-options:==p' $src ) )
14
14
expected_status=$( sed -n ' s=//codeql-extractor-expected-status:[[:space:]]*==p' $src )
15
15
expected_status=${expected_status:- 0}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def assert_extractor_executed_with(*flags):
60
60
for actual , expected in itertools .zip_longest (execution , flags ):
61
61
if actual :
62
62
actual = actual .strip ()
63
- expected_prefix = f"-resource-dir { swift_root } /resource-dir/{ platform } -typecheck -primary-file "
63
+ expected_prefix = f"-resource-dir { swift_root } /resource-dir/{ platform } -c -primary-file "
64
64
assert actual .startswith (expected_prefix ), f"correct options not found in\n { actual } "
65
65
actual = actual [len (expected_prefix ):]
66
66
assert actual , f"\n not encountered: { expected } "
You can’t perform that action at this time.
0 commit comments