How to disable flag detection? #2996
Unanswered
davidchisnall
asked this question in
Q&A
Replies: 1 comment 8 replies
-
it should work for add_cxxflags add_cxxflags("-std=c++20") |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a toolchain with a custom build of clang. When I use it, xmake keeps trying to use the system clang to detect whether any of the flags that I'm passing work and failing because they are only in ours (or, worse, because the host is Linux and does not have clang installed in
$PATH
). This impacts a bunch of built-in features, for example xmake decides not to pass-std=c++20
because it tries that flag with/usr/bin/clang++
and detects that it is unsupported and then removes it from invocations ofmy/custom/clang++
.How do I disable this flag detection globally? I expected
set_policy("check.auto_ignore_flags", false)
to work.Beta Was this translation helpful? Give feedback.
All reactions