Add target detection to. xcode

This commit is contained in:
Nathan Horrigan
2021-08-18 09:15:50 +01:00
parent ca513fcd87
commit 58bd2ebdda
2 changed files with 4 additions and 1 deletions

View File

@@ -339,7 +339,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "./../../../../target/release/wasmer compile DylibExample/sum.wasm --target x86_64-apple-ios --dylib -o DylibExample/sum.dylib\n";
shellScript = "export ARCH='x86_64'\nif [[ `uname -m` == 'arm64' ]]; then\n export ARCH='aarch64'\nfi\n\n\n./../../../../target/release/wasmer compile DylibExample/sum.wasm --target $ARCH-apple-ios --dylib -o DylibExample/sum.dylib\n";
};
/* End PBXShellScriptBuildPhase section */