File tree 4 files changed +46
-2
lines changed
4 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 14
14
"kind" : " remoteSourceControl" ,
15
15
"location" : " https://github.com/apple/swift-syntax.git" ,
16
16
"state" : {
17
- "revision" : " 6ad4ea24b01559dde0773e3d091f1b9e36175036 " ,
18
- "version" : " 509.0.2 "
17
+ "revision" : " 64889f0c732f210a935a0ad7cda38f77f876262d " ,
18
+ "version" : " 509.1.1 "
19
19
}
20
20
},
21
21
{
Original file line number Diff line number Diff line change
1
+ #! /bin/zsh
2
+
3
+ # A `realpath` alternative using the default C implementation.
4
+ filepath () {
5
+ [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } "
6
+ }
7
+
8
+ OG_ROOT=" $( dirname $( dirname $( filepath $0 ) ) ) "
9
+
10
+ # Get the language and input file path from the arguments
11
+ language=${1:- " swift" }
12
+ input_file=${2:- " $( dirname $( filepath $0 ) ) /demangle.txt" }
13
+
14
+ echo " Demangling $input_file using $language mode"
15
+
16
+ # Read each line of the input file
17
+ while IFS= read -r line; do
18
+ # Demangle the line using the appropriate tool based on the language
19
+ if [[ $language == " swift" ]]; then
20
+ xcrun swift-demangle " $line "
21
+ elif [[ $language == " c++" ]]; then
22
+ c++filt " $line "
23
+ else
24
+ echo " Invalid language: $language "
25
+ echo " Usage: demangle.sh <language> <input file>"
26
+ echo " language: swift or c++, [default]: swift"
27
+ echo " input file: [default] demangle.txt"
28
+ exit 1
29
+ fi
30
+ done < " $input_file "
Original file line number Diff line number Diff line change
1
+ #! /bin/zsh
2
+
3
+ # A `realpath` alternative using the default C implementation.
4
+ filepath () {
5
+ [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } "
6
+ }
7
+
8
+ OG_ROOT=" $( dirname $( dirname $( filepath $0 ) ) ) "
9
+
10
+ cd $OG_ROOT
11
+
12
+ export OPENSWIFTUI_SWIFT_TESTING=0
13
+ export OPENGRAPH_SWIFT_TESTING=0
14
+ swift build -c release -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution
You can’t perform that action at this time.
0 commit comments