set SDKROOT for macos build
This commit is contained in:
parent
6c1d3d8894
commit
75ad6cbd02
2 changed files with 3 additions and 18 deletions
18
.github/workflows/macos.yml
vendored
18
.github/workflows/macos.yml
vendored
|
|
@ -26,24 +26,6 @@ jobs:
|
|||
with:
|
||||
go-version-file: gomuks/go.mod
|
||||
|
||||
- name: Debug macOS compiler
|
||||
run: |
|
||||
echo "CC:"
|
||||
go env CC
|
||||
|
||||
echo "SDKROOT:"
|
||||
echo "$SDKROOT"
|
||||
|
||||
echo "xcrun SDK:"
|
||||
xcrun --sdk macosx --show-sdk-path
|
||||
|
||||
echo "clang:"
|
||||
xcrun --sdk macosx --find clang
|
||||
|
||||
echo "clang search paths:"
|
||||
echo '#include <stdlib.h>' | \
|
||||
xcrun --sdk macosx clang -v -E -x c - >/dev/null
|
||||
|
||||
- name: Build app
|
||||
run: |
|
||||
flutter pub get
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ Future<void> main(List<String> args) => build(args, (input, output) async {
|
|||
break;
|
||||
case OS.macOS:
|
||||
libFileName = "libgomuks.dylib";
|
||||
|
||||
extraEnv = {"SDKROOT": await getXCodeTool()};
|
||||
|
||||
break;
|
||||
case OS.windows:
|
||||
libFileName = "libgomuks.dll";
|
||||
|
|
|
|||
Loading…
Reference in a new issue