summaryrefslogtreecommitdiff
path: root/src/support/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/path.cpp')
-rw-r--r--src/support/path.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/support/path.cpp b/src/support/path.cpp
index 322099a95..7ae68d719 100644
--- a/src/support/path.cpp
+++ b/src/support/path.cpp
@@ -27,7 +27,7 @@ namespace Path {
std::string getPathSeparator() {
// TODO: use c++17's path separator
// http://en.cppreference.com/w/cpp/experimental/fs/path
-#if defined(WIN32) || defined(_WIN32)
+#if defined(WIN32) || defined(_WIN32)
return "\\";
#else
return "/";
@@ -36,7 +36,8 @@ std::string getPathSeparator() {
std::string getBinaryenRoot() {
auto* envVar = getenv("BINARYEN_ROOT");
- if (envVar) return envVar;
+ if (envVar)
+ return envVar;
return ".";
}
@@ -50,9 +51,7 @@ std::string getBinaryenBinDir() {
}
}
-void setBinaryenBinDir(std::string dir) {
- binDir = dir;
-}
+void setBinaryenBinDir(std::string dir) { binDir = dir; }
// Gets the path to a binaryen binary tool, like wasm-opt
std::string getBinaryenBinaryTool(std::string name) {
@@ -62,4 +61,3 @@ std::string getBinaryenBinaryTool(std::string name) {
} // namespace Path
} // namespace wasm
-