Open cangfengzhs opened 4 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: When using abseil to compile the program, two -std appear in the compilation parameters.
执行一下,定位多余的 flags 哪里来的
$ xmake show -t <target>
Bot detected the issue body's language is not English, translate it automatically.
Execute it and locate where the redundant flags come from.
$ xmake show -t <target>
应该是从grpc过来的。 通过add_requires("grpc",{system=false,configs={language="c++20"}}) 指定了language解决了这个问题
Bot detected the issue body's language is not English, translate it automatically.
It should come from grpc. By add_requires("grpc",{system=false,configs={language="c++20"}}) Specifying language solved this problem
Xmake 版本
2.9.3
操作系统版本和架构
ubuntu2004
描述问题
指定了c++20,但是编译时还是出现了c++11,导致编译失败
期待的结果
正常编译
工程配置
set_languages("c++20") add_requires("cmake",{system=false}) add_requires("folly",{system=false}) add_requires("glog",{system=false}) add_requires("rocksdb",{system=false}) add_requires("protobuf-cpp",{system=false}) add_requires("grpc",{system=false}) add_rules("mode.release", "mode.debug")
add_includedirs("src") includes("src")
附加信息和错误日志