diff options
author | Michael Ferris <mike.ferris@hotmail.com> | 2018-03-26 12:46:21 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-03-26 12:46:21 -0700 |
commit | 5f61c3208212beaf9e69230f69770ab64c61e06f (patch) | |
tree | 379a033d75f2d84f39c6457a12e194048066c85f /src/support/path.h | |
parent | 339548b048d4c58c9d488b33f78551e7ac14724c (diff) | |
download | binaryen-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.h | 8 |
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 |