diff options
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 |