summaryrefslogtreecommitdiff
path: root/src/support/path.h
diff options
context:
space:
mode:
authorMichael Ferris <mike.ferris@hotmail.com>2018-03-26 12:46:21 -0700
committerAlon Zakai <alonzakai@gmail.com>2018-03-26 12:46:21 -0700
commit5f61c3208212beaf9e69230f69770ab64c61e06f (patch)
tree379a033d75f2d84f39c6457a12e194048066c85f /src/support/path.h
parent339548b048d4c58c9d488b33f78551e7ac14724c (diff)
downloadbinaryen-5f61c3208212beaf9e69230f69770ab64c61e06f.tar.gz
binaryen-5f61c3208212beaf9e69230f69770ab64c61e06f.tar.bz2
binaryen-5f61c3208212beaf9e69230f69770ab64c61e06f.zip
Support wasm-reduce for Windows (#1488)
Diffstat (limited to 'src/support/path.h')
-rw-r--r--src/support/path.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/support/path.h b/src/support/path.h
index 18dde8ea8..5852fcc4d 100644
--- a/src/support/path.h
+++ b/src/support/path.h
@@ -44,11 +44,13 @@ inline std::string getBinaryenRoot() {
return ".";
}
+inline std::string getBinaryenBinDir() {
+ return getBinaryenRoot() + getPathSeparator() + "bin" + getPathSeparator();
+}
+
// Gets the path to a binaryen binary tool, like wasm-opt
inline std::string getBinaryenBinaryTool(std::string name) {
- return getBinaryenRoot() + getPathSeparator() +
- "bin" + getPathSeparator() +
- name;
+ return getBinaryenBinDir() + name;
}
} // namespace Path