From a956948fdd57b0896bbeef25e73b1e072600521f Mon Sep 17 00:00:00 2001 From: RonxBulld <526677628@qq.com> Date: Fri, 23 Apr 2021 10:20:12 +0800 Subject: [PATCH] If you use the clang compiler, disable the built-in lexer. --- include/cxxopts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 1f01c7a..8efef2b 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -41,7 +41,7 @@ THE SOFTWARE. #include #include -#if defined(__GNUC__) +#if defined(__GNUC__) && !defined(__clang__) # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 # define NO_REGEX # endif