summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-01-08 12:17:48 -0800
committerGitHub <noreply@github.com>2020-01-08 12:17:48 -0800
commit8d4db9fb86c3b80df3eaa0d8e5eb379d081c8399 (patch)
tree44e4e0d3e6673b5971899f1277643df7862913b1 /src
parent132daae1e9154782bb1afa5df80dfe7ea35f0369 (diff)
downloadbinaryen-8d4db9fb86c3b80df3eaa0d8e5eb379d081c8399.tar.gz
binaryen-8d4db9fb86c3b80df3eaa0d8e5eb379d081c8399.tar.bz2
binaryen-8d4db9fb86c3b80df3eaa0d8e5eb379d081c8399.zip
Remove git dependency (#2578)
Only use git to set version number if .git directory is present. This means that for release archives the VERSION string will be used as-is. Fixes #2563
Diffstat (limited to 'src')
-rw-r--r--src/support/command-line.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/command-line.cpp b/src/support/command-line.cpp
index 0986a49ff..e6cd352bb 100644
--- a/src/support/command-line.cpp
+++ b/src/support/command-line.cpp
@@ -58,7 +58,7 @@ Options::Options(const std::string& command, const std::string& description)
"Output version information and exit",
Arguments::Zero,
[command](Options*, const std::string&) {
- std::cout << command << " " << BINARYEN_VERSION_INFO << "\n";
+ std::cout << command << " " << CMAKE_PROJECT_VERSION << "\n";
exit(0);
});
add("--help",