From 5f61c3208212beaf9e69230f69770ab64c61e06f Mon Sep 17 00:00:00 2001 From: Michael Ferris Date: Mon, 26 Mar 2018 12:46:21 -0700 Subject: Support wasm-reduce for Windows (#1488) --- src/support/path.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/support/path.h') 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 -- cgit v1.2.3