File tree Expand file tree Collapse file tree 7 files changed +95
-8
lines changed
test/Driver/Dependencies/Inputs Expand file tree Collapse file tree 7 files changed +95
-8
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
+ # fail.py - Just exits with an error code -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
2
11
3
12
exit (1 )
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
2
+ # fake-build-for-bitcode.py - Fake build with -embed-bitcode -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
3
14
# Emulates the frontend of an -embed-bitcode job. That means we have to handle
4
15
# -emit-bc and -c actions.
16
+ #
17
+ # ----------------------------------------------------------------------------
5
18
6
19
from __future__ import print_function
7
20
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
2
+ # fake-build-for-whole-module.py - Optimized fake build -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
3
14
# Emulates the frontend of a -whole-module-optimization compilation.
15
+ #
16
+ # ----------------------------------------------------------------------------
4
17
5
18
from __future__ import print_function
6
19
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
2
+ # modify-non-primary-files.py - Fake build while modifying files -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
3
14
# modify-non-primary-files.py simulates a build where the user is modifying the
4
15
# source files during compilation.
16
+ #
17
+ # ----------------------------------------------------------------------------
5
18
6
19
from __future__ import print_function
7
20
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
2
+ # touch.py - /bin/touch that writes the LLVM epoch -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
3
14
# Like /bin/touch, but takes a time using the LLVM epoch.
15
+ #
16
+ # ----------------------------------------------------------------------------
4
17
5
18
import os
6
19
import sys
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
2
+ # update-dependencies-bad.py - Fails on bad.swift -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
3
14
# Fails if the input file is named "bad.swift"; otherwise dispatches to
4
15
# update-dependencies.py.
16
+ #
17
+ # ----------------------------------------------------------------------------
5
18
6
19
from __future__ import print_function
7
20
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
-
3
- # update-dependencies.py simulates a Swift compilation for the purposes of
4
- # dependency analysis. That means it has two tasks:
2
+ # update-dependencies.py - Fake build for dependency analysis -*- python -*-
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See http://swift.org/LICENSE.txt for license information
10
+ # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ----------------------------------------------------------------------------
13
+ #
14
+ # Simulates a Swift compilation for the purposes of dependency analysis.
15
+ # That means this has two tasks:
5
16
#
6
17
# 1. Update the main output of the compilation job.
7
18
# 2. Update the associated dependencies file, in case anything changed.
13
24
# the old dependencies (if present).
14
25
#
15
26
# If invoked in non-primary-file mode, it only creates the output file.
27
+ #
28
+ # ----------------------------------------------------------------------------
16
29
17
30
from __future__ import print_function
18
31
You can’t perform that action at this time.
0 commit comments