File tree 1 file changed +6
-0
lines changed
.github/actions/merge-macos
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 33
33
lipo -create -output $exe ../ldc2-x86_64/$exe ../ldc2-arm64/$exe
34
34
done
35
35
36
+ # merge LTO plugins to universal one (and keep in hardcoded lib/)
37
+ mkdir lib
38
+ lipo -create -output lib/libLTO.dylib lib-x86_64/libLTO.dylib lib-arm64/libLTO.dylib
39
+ rm lib-{x86_64,arm64}/libLTO.dylib
40
+
36
41
# ldc2.conf: replace the default section and add extra sections
37
42
# note: x86_64-apple-ios section already exists
38
43
sections="
92
97
for triple in x86_64-apple-macos11.0 arm64-apple-macos11.0 x86_64-apple-ios12.0-simulator arm64-apple-ios12.0; do
93
98
ldc2-universal/bin/ldc2 -mtriple="$triple" hello.d
94
99
ldc2-universal/bin/ldc2 -mtriple="$triple" hello.d -link-defaultlib-shared
100
+ ldc2-universal/bin/ldc2 -mtriple="$triple" hello.d -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto
95
101
done
96
102
97
103
- name : Pack universal package
You can’t perform that action at this time.
0 commit comments