Add -lstdc++fs to the link line of gcc

older versions of gcc (<8.1) need this, even if they accept -std=c++17

with this patch, the code can be run on fishtest again,
at least by the majority of workers (fishtest doesn't require c++17 to be available)

See e.g.
https://tests.stockfishchess.org/tests/view/5fcfbf801ac1691201888235

Bench: 3820648
This commit is contained in:
Joost VandeVondele
2020-12-09 08:40:34 +09:00
committed by nodchip
parent ae045e2cd8
commit b49fd3ab30
7 changed files with 9 additions and 9 deletions
-2
View File
@@ -25,7 +25,6 @@
#include <chrono>
#include <random>
#include <regex>
#include <filesystem>
using namespace std;
@@ -610,7 +609,6 @@ namespace Learner
{
string kif_base_dir = Path::combine(base_dir, target_dir);
namespace sys = std::filesystem;
sys::path p(kif_base_dir); // Origin of enumeration
std::for_each(sys::directory_iterator(p), sys::directory_iterator(),
[&](const sys::path& path) {
-1
View File
@@ -22,7 +22,6 @@
#include <climits>
#include <cmath>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <limits>
-2
View File
@@ -39,7 +39,6 @@
#include <climits>
#include <cmath> // std::exp(),std::pow(),std::log()
#include <cstring> // memcpy()
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <limits>
@@ -104,7 +103,6 @@ namespace Learner
{
string kif_base_dir = Path::combine(base_dir, target_dir);
namespace sys = std::filesystem;
sys::path p(kif_base_dir); // Origin of enumeration
std::for_each(sys::directory_iterator(p), sys::directory_iterator(),
[&](const sys::path& path) {
-1
View File
@@ -8,7 +8,6 @@
#include "syzygy/tbprobe.h"
#include <cstring>
#include <filesystem>
#include <fstream>
#include <limits>
#include <list>