aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/os
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-12 16:07:23 -0400
committerJack Lloyd <[email protected]>2018-10-12 17:02:17 -0400
commitea72317c66b3fe095a95854b6c2b8a48001721ef (patch)
tree118fbb2e19197a40c6157d18da7c16cd76651b52 /src/build-data/os
parentc8406165f8d38107a3d7dcfe3b7f0938a8a8faa2 (diff)
Add an explicit OS target for Emscripten
This allows things to mostly work out of the box (#1702), and allows us to write Emscripten specific code where required.
Diffstat (limited to 'src/build-data/os')
-rw-r--r--src/build-data/os/emscripten.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/build-data/os/emscripten.txt b/src/build-data/os/emscripten.txt
new file mode 100644
index 000000000..b865eff87
--- /dev/null
+++ b/src/build-data/os/emscripten.txt
@@ -0,0 +1,16 @@
+
+obj_suffix bc
+
+static_suffix a
+program_suffix .bc
+
+ar_command emar
+ar_options cr
+
+use_stack_protector no
+
+<target_features>
+filesystem
+dev_random
+posix1
+</target_features>