aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-30 13:35:36 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit31899d0a48108515d13508b660fb3bb82b869430 (patch)
tree38bae83a3d5dc919e89906ce43571eaf2a210d5f /include
parentfa358bcce18c4c6b343eb2a82475d76a6638096a (diff)
Add support for emscripten, fix compdb for tests
Diffstat (limited to 'include')
-rw-r--r--include/Exec.hpp1
-rw-r--r--include/env.hpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/Exec.hpp b/include/Exec.hpp
index 9996073..93ce307 100644
--- a/include/Exec.hpp
+++ b/include/Exec.hpp
@@ -14,6 +14,7 @@ namespace sibs
};
Result<ExecResult> exec(const _tinydir_char_t *cmd, bool print = false);
+ Result<ExecResult> exec(const FileString &cmd, bool print = false);
}
#endif //SIBS_EXEC_HPP
diff --git a/include/env.hpp b/include/env.hpp
index 72b7828..b25cb69 100644
--- a/include/env.hpp
+++ b/include/env.hpp
@@ -59,6 +59,11 @@
#define OS_TYPE OS_TYPE_LINUX
#endif
+#ifdef __EMSCRIPTEN__
+ #define OS_FAMILY OS_FAMILY_POSIX
+ #define OS_TYPE OS_TYPE_LINUX
+#endif
+
#if defined(__GNUC__)
#if defined(__x86_64__) || defined(__pc64__)
#define SIBS_ENV_64BIT