Merge pull request #56555 from matthewbauer/wasm

Initial WebAssembly/WASI cross-compilation support
This commit is contained in:
Matthew Bauer
2019-04-23 22:44:33 -04:00
committed by GitHub
25 changed files with 1678 additions and 31 deletions
@@ -347,6 +347,10 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" stackprotector fortify"
''
+ optionalString targetPlatform.isWasm ''
hardening_unsupported_flags+=" stackprotector fortify pie pic"
''
+ optionalString (libc != null && targetPlatform.isAvr) ''
for isa in avr5 avr3 avr4 avr6 avr25 avr31 avr35 avr51 avrxmega2 avrxmega4 avrxmega5 avrxmega6 avrxmega7 tiny-stack; do
echo "-B${getLib libc}/avr/lib/$isa" >> $out/nix-support/libc-cflags