From 6dc11dccc6c8147b5b71c86be7e458eebc35f8c5 Mon Sep 17 00:00:00 2001
From: Li Jin <dragon-fly@qq.com>
Date: Mon, 11 Jan 2021 14:53:31 +0800
Subject: add all the compiler specific linker flags.

---
 src/ghc/fs_std.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/ghc/fs_std.hpp b/src/ghc/fs_std.hpp
index a38f38a..d8e03b8 100644
--- a/src/ghc/fs_std.hpp
+++ b/src/ghc/fs_std.hpp
@@ -30,7 +30,7 @@
 //              namespace fs.
 //---------------------------------------------------------------------------------------
 #ifndef GHC_FILESYSTEM_STD_H
-#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include)
+#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && (!defined(__GNUC__) || __GNUC__ >= 9)
 #if __has_include(<filesystem>)
 #define GHC_USE_STD_FS
 #include <filesystem>
-- 
cgit v1.2.3-55-g6feb