summaryrefslogtreecommitdiff
path: root/src/c-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/c-writer.cc')
-rw-r--r--src/c-writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c-writer.cc b/src/c-writer.cc
index 798f85f9..588151fd 100644
--- a/src/c-writer.cc
+++ b/src/c-writer.cc
@@ -1791,10 +1791,10 @@ void CWriter::WriteCallIndirectFuncDeclaration(const FuncDeclaration& decl,
}
void CWriter::WriteFeatureMacros() {
- if (options_.features->exceptions_enabled()) {
+ if (module_->features_used.exceptions) {
Write("#define WASM_RT_ENABLE_EXCEPTION_HANDLING", Newline(), Newline());
}
- if (options_.features->simd_enabled()) {
+ if (module_->features_used.simd) {
Write("#define WASM_RT_ENABLE_SIMD", Newline(), Newline());
}
}