WASI,libc: enable tests.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2021-07-27 08:59:34 +09:00
parent fc105f2681
commit 1e20a62126
16 changed files with 221 additions and 86 deletions

View File

@@ -582,7 +582,9 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) {
bool want_ssp_attrs = g->build_mode != BuildModeFastRelease &&
g->build_mode != BuildModeSmallRelease &&
g->link_libc;
g->link_libc &&
// WASI-libc does not support stack-protector yet.
!target_is_wasm(g->zig_target);
if (want_ssp_attrs) {
addLLVMFnAttr(llvm_fn, "sspstrong");
addLLVMFnAttrStr(llvm_fn, "stack-protector-buffer-size", "4");