aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2024-09-30 16:29:40 +0300
committerDylan Baker <dylan@pnwbakers.com>2024-09-30 09:21:01 -0700
commit5399d3de02cb0f92e334f3f5f61cf0aa8521ac63 (patch)
treeecf86329a3b8a78c55f930d244245bb82414b4b4 /docs/markdown/snippets
parentddc03e5ab3449efcded44ac35e3d6934bdc85c1e (diff)
downloadmeson-5399d3de02cb0f92e334f3f5f61cf0aa8521ac63.zip
meson-5399d3de02cb0f92e334f3f5f61cf0aa8521ac63.tar.gz
meson-5399d3de02cb0f92e334f3f5f61cf0aa8521ac63.tar.bz2
compilers/detect: remove unsupported -cpp flag for Clang preprocessor detection
Clang's resource files, e.g. /usr/share/clang/clang++.cfg, can be used to bump the default standard level across the system. However due to llvm/llvm-project#61641 `clang++ -std=c++17 -E -dM -` doesn't work. The workaround is to pass the language explicitly. 4ad792e158b6059eb847dd0562aff9bd7029981f fixed the issue by passing the language explicitly, but started passing the `-cpp` flag, which Clang doesn't support. Basically Clang would always fallback to the second detection attempt as a result. Remove the unsupported flag and the above scenarios works now too. 🙂 See-also: https://github.com/llvm/llvm-project/issues/61641 Fixes: 4ad792e158b6059eb847dd0562aff9bd7029981f
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions