Skip to content

Commit a0b0eb6

Browse files
Update docs with local target and linker options
1 parent 7e91c70 commit a0b0eb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,15 @@ custom:
100100
cargoFlags: '--features enable-awesome'
101101
# experimental! when set to true, artifacts are built locally outside of docker
102102
+ dockerless: true
103+
104+
# when using local builds (dockerless), optionally provide a different target and linker for the compiler
105+
# for example, allow local running on ARM macs
106+
target: aarch64-apple-darwin
107+
linker: clang
103108
```
104109

110+
The following assumes that you have not specified a different target or linker. If you do, make sure have that you have installed the specified target (via `rustup`) and linker.
111+
105112
This will build and link your lambda as a static binary outside a container that can be deployed in to the lambda execution environment using [MUSL](https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html). The aim is that in future releases, this might become the default behavior.
106113

107114
In order to use this mode its expected that you install the `x86_64-unknown-linux-musl` target on all platforms locally with

0 commit comments

Comments
 (0)