File tree Expand file tree Collapse file tree 14 files changed +147
-7
lines changed
examples/ios_app/test/fixtures/bwb.xcodeproj/rules_xcodeproj/bazel
cc/bwb.xcodeproj/rules_xcodeproj/bazel
command_line/bwb.xcodeproj/rules_xcodeproj/bazel
generator/bwb.xcodeproj/rules_xcodeproj/bazel
multiplatform/bwb.xcodeproj/rules_xcodeproj/bazel
tvos_app/bwb.xcodeproj/rules_xcodeproj/bazel
xcodeproj/internal/bazel_integration_files Expand file tree Collapse file tree 14 files changed +147
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ passthrough_args=(" ${@: 1} " )
6
+
5
7
while test $# -gt 0
6
8
do
7
9
case $1 in
10
12
printf " \0%s\0" " $ld_version " > " $1 "
11
13
break
12
14
;;
13
- esac
14
15
16
+ -isysroot)
17
+ shift
18
+ # PATH/DEVELOPER_DIR isn't set when this is called, so we need to calculate
19
+ # the developer dir from the sysroot to invoke clang (used below)
20
+ developer_dir=" ${1/ \/ Platforms\/ */ } "
21
+ ;;
22
+
23
+ * .preview-thunk.dylib)
24
+ # Pass through for SwiftUI Preview thunk compilation
25
+ shift
26
+ exec " $developer_dir /Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" " ${passthrough_args[@]} "
27
+ ;;
28
+ esac
15
29
shift
16
30
done
Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
import os
5
+ import subprocess
5
6
import sys
6
7
from typing import List
7
8
@@ -10,6 +11,11 @@ def _main() -> None:
10
11
os .system ("swiftc -v" )
11
12
return
12
13
14
+ # Pass through for SwiftUI Preview thunk compilation
15
+ if (any (arg .endswith (".preview-thunk.swift" ) for arg in sys .argv ) and
16
+ "-output-file-map" not in sys .argv ):
17
+ exit (subprocess .run (["swiftc" ] + sys .argv [1 :], check = False ).returncode )
18
+
13
19
_touch_deps_files (sys .argv )
14
20
15
21
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ passthrough_args=(" ${@: 1} " )
6
+
5
7
while test $# -gt 0
6
8
do
7
9
case $1 in
10
12
printf " \0%s\0" " $ld_version " > " $1 "
11
13
break
12
14
;;
13
- esac
14
15
16
+ -isysroot)
17
+ shift
18
+ # PATH/DEVELOPER_DIR isn't set when this is called, so we need to calculate
19
+ # the developer dir from the sysroot to invoke clang (used below)
20
+ developer_dir=" ${1/ \/ Platforms\/ */ } "
21
+ ;;
22
+
23
+ * .preview-thunk.dylib)
24
+ # Pass through for SwiftUI Preview thunk compilation
25
+ shift
26
+ exec " $developer_dir /Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" " ${passthrough_args[@]} "
27
+ ;;
28
+ esac
15
29
shift
16
30
done
Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
import os
5
+ import subprocess
5
6
import sys
6
7
from typing import List
7
8
@@ -10,6 +11,11 @@ def _main() -> None:
10
11
os .system ("swiftc -v" )
11
12
return
12
13
14
+ # Pass through for SwiftUI Preview thunk compilation
15
+ if (any (arg .endswith (".preview-thunk.swift" ) for arg in sys .argv ) and
16
+ "-output-file-map" not in sys .argv ):
17
+ exit (subprocess .run (["swiftc" ] + sys .argv [1 :], check = False ).returncode )
18
+
13
19
_touch_deps_files (sys .argv )
14
20
15
21
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ passthrough_args=(" ${@: 1} " )
6
+
5
7
while test $# -gt 0
6
8
do
7
9
case $1 in
10
12
printf " \0%s\0" " $ld_version " > " $1 "
11
13
break
12
14
;;
13
- esac
14
15
16
+ -isysroot)
17
+ shift
18
+ # PATH/DEVELOPER_DIR isn't set when this is called, so we need to calculate
19
+ # the developer dir from the sysroot to invoke clang (used below)
20
+ developer_dir=" ${1/ \/ Platforms\/ */ } "
21
+ ;;
22
+
23
+ * .preview-thunk.dylib)
24
+ # Pass through for SwiftUI Preview thunk compilation
25
+ shift
26
+ exec " $developer_dir /Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" " ${passthrough_args[@]} "
27
+ ;;
28
+ esac
15
29
shift
16
30
done
Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
import os
5
+ import subprocess
5
6
import sys
6
7
from typing import List
7
8
@@ -10,6 +11,11 @@ def _main() -> None:
10
11
os .system ("swiftc -v" )
11
12
return
12
13
14
+ # Pass through for SwiftUI Preview thunk compilation
15
+ if (any (arg .endswith (".preview-thunk.swift" ) for arg in sys .argv ) and
16
+ "-output-file-map" not in sys .argv ):
17
+ exit (subprocess .run (["swiftc" ] + sys .argv [1 :], check = False ).returncode )
18
+
13
19
_touch_deps_files (sys .argv )
14
20
15
21
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ passthrough_args=(" ${@: 1} " )
6
+
5
7
while test $# -gt 0
6
8
do
7
9
case $1 in
10
12
printf " \0%s\0" " $ld_version " > " $1 "
11
13
break
12
14
;;
13
- esac
14
15
16
+ -isysroot)
17
+ shift
18
+ # PATH/DEVELOPER_DIR isn't set when this is called, so we need to calculate
19
+ # the developer dir from the sysroot to invoke clang (used below)
20
+ developer_dir=" ${1/ \/ Platforms\/ */ } "
21
+ ;;
22
+
23
+ * .preview-thunk.dylib)
24
+ # Pass through for SwiftUI Preview thunk compilation
25
+ shift
26
+ exec " $developer_dir /Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" " ${passthrough_args[@]} "
27
+ ;;
28
+ esac
15
29
shift
16
30
done
Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
import os
5
+ import subprocess
5
6
import sys
6
7
from typing import List
7
8
@@ -10,6 +11,11 @@ def _main() -> None:
10
11
os .system ("swiftc -v" )
11
12
return
12
13
14
+ # Pass through for SwiftUI Preview thunk compilation
15
+ if (any (arg .endswith (".preview-thunk.swift" ) for arg in sys .argv ) and
16
+ "-output-file-map" not in sys .argv ):
17
+ exit (subprocess .run (["swiftc" ] + sys .argv [1 :], check = False ).returncode )
18
+
13
19
_touch_deps_files (sys .argv )
14
20
15
21
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ passthrough_args=(" ${@: 1} " )
6
+
5
7
while test $# -gt 0
6
8
do
7
9
case $1 in
10
12
printf " \0%s\0" " $ld_version " > " $1 "
11
13
break
12
14
;;
13
- esac
14
15
16
+ -isysroot)
17
+ shift
18
+ # PATH/DEVELOPER_DIR isn't set when this is called, so we need to calculate
19
+ # the developer dir from the sysroot to invoke clang (used below)
20
+ developer_dir=" ${1/ \/ Platforms\/ */ } "
21
+ ;;
22
+
23
+ * .preview-thunk.dylib)
24
+ # Pass through for SwiftUI Preview thunk compilation
25
+ shift
26
+ exec " $developer_dir /Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" " ${passthrough_args[@]} "
27
+ ;;
28
+ esac
15
29
shift
16
30
done
Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
import os
5
+ import subprocess
5
6
import sys
6
7
from typing import List
7
8
@@ -10,6 +11,11 @@ def _main() -> None:
10
11
os .system ("swiftc -v" )
11
12
return
12
13
14
+ # Pass through for SwiftUI Preview thunk compilation
15
+ if (any (arg .endswith (".preview-thunk.swift" ) for arg in sys .argv ) and
16
+ "-output-file-map" not in sys .argv ):
17
+ exit (subprocess .run (["swiftc" ] + sys .argv [1 :], check = False ).returncode )
18
+
13
19
_touch_deps_files (sys .argv )
14
20
15
21
You can’t perform that action at this time.
0 commit comments