Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions swift/integration-tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
*.actual
db
*.swiftmodule
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
| C.swift:0:0:0:0 | C.swift |
| D.swift:0:0:0:0 | D.swift |
| E.swift:0:0:0:0 | E.swift |
| F1.swift:0:0:0:0 | F1.swift |
| F2.swift:0:0:0:0 | F2.swift |
| file://:0:0:0:0 | |

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

if [[ "$(uname)" == Darwin ]]; then
SDK="-sdk $(xcrun -show-sdk-path)"
FRONTEND="$(xcrun -find swift-frontend)"
else
SDK=""
FRONTEND="swift-frontend"
fi

$FRONTEND -frontend -c A.swift $SDK
$FRONTEND -frontend -c B.swift -o B.o $SDK
$FRONTEND -frontend -c -primary-file C.swift $SDK
$FRONTEND -frontend -c -primary-file D.swift -o D.o $SDK
$FRONTEND -frontend -c -primary-file E.swift Esup.swift -o E.o $SDK
$FRONTEND -frontend -emit-module -primary-file F1.swift F2.swift -module-name F -o F1.swiftmodule $SDK
$FRONTEND -frontend -emit-module F1.swift -primary-file F2.swift -module-name F -o F2.swiftmodule $SDK
$FRONTEND -merge-modules F1.swiftmodule F2.swiftmodule -o F.swiftmodule $SDK
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from create_database_utils import *

run_codeql_database_create([
'make',
'./build.sh',
], lang='swift')