summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 54682e4b0..82675df1b 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -387,7 +387,8 @@ private:
if (!*s) break;
if (*s != '.') break;
s++;
- if (match("file")) parseFile();
+ if (parseVersionMin());
+ else if (match("file")) parseFile();
else if (match("globl")) parseGlobl();
else if (match("type")) parseType();
else {
@@ -414,6 +415,15 @@ private:
skipWhitespace();
}
+ bool parseVersionMin() {
+ if (match("watchos_version_min") || match("tvos_version_min") || match("ios_version_min") || match("macosx_version_min")) {
+ s = strchr(s, '\n');
+ skipWhitespace();
+ return true;
+ } else
+ return false;
+ }
+
void parseFunction() {
if (debug) dump("func");
Name name = getStrToSep();