aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-10-20 16:58:00 +0200
committerLuuk de Gram <luuk@degram.dev>2022-10-25 20:48:08 +0200
commit777bcbf96871a0250664b9cabdea5dbf51e0e64d (patch)
treed32afcefc66379cebce92a2414887d6e84db7d25 /src/codegen/c.zig
parent85b669d497641de383070353d50a6e4fd30abd49 (diff)
downloadzig-777bcbf96871a0250664b9cabdea5dbf51e0e64d.tar.gz
zig-777bcbf96871a0250664b9cabdea5dbf51e0e64d.zip
wasm-linker: emit `target_features` section
When the result is not being stripped, we emit the `target_features` section based on all the used features. This includes features inferred from linked object files. Considering we know all possible features upfront, we can use an array and therefore do not have to dynamically allocate memory. Using this trick we can also easily order all features based the same ordering as found in `std.Target.wasm` which is the same ordering used by LLVM and the like.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions