aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-11 09:33:42 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-11 09:33:42 +0200
commitb4b5586efd836d79c0d4ab9159130f6f33e27afe (patch)
treed84b2d2b53a54466487a40505b3ead45e73a0169 /ice40/main.cc
parent9f8bdd3c3ece772b0a19bfa5693bcd2646d20bb6 (diff)
downloadnextpnr-b4b5586efd836d79c0d4ab9159130f6f33e27afe.tar.gz
nextpnr-b4b5586efd836d79c0d4ab9159130f6f33e27afe.tar.bz2
nextpnr-b4b5586efd836d79c0d4ab9159130f6f33e27afe.zip
Fixed portability issue, now it works on msys2 windows build as well
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 3b5ffd53..e87862be 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -20,6 +20,7 @@
#ifndef PYTHON_MODULE
#include <QApplication>
+#include <boost/filesystem/convenience.hpp>
#include <boost/program_options.hpp>
#include <fstream>
#include <iostream>
@@ -102,7 +103,7 @@ int main(int argc, char *argv[])
if (vm.count("help") || argc == 1) {
help:
- std::cout << basename(argv[0])
+ std::cout << boost::filesystem::basename(argv[0])
<< " -- Next Generation Place and Route (git "
"sha1 " GIT_COMMIT_HASH_STR ")\n";
std::cout << "\n";
@@ -111,7 +112,7 @@ int main(int argc, char *argv[])
}
if (vm.count("version")) {
- std::cout << basename(argv[0])
+ std::cout << boost::filesystem::basename(argv[0])
<< " -- Next Generation Place and Route (git "
"sha1 " GIT_COMMIT_HASH_STR ")\n";
return 1;