Fallback compile flags
See original GitHub issueThere is an option in the LSP called initializationOptions.fallbackFlags
which allows you to pass some fallback compile flags via the LSP if no infos is found in the compile_commands.json
.
Would it be possible to enable that?
My problem is that I’m compiling some .cu
files to some .ptx
and CMake doesn’t register the compilation flags given to nvcc
for those files into the compile_commands.json
. Therefore clangd
raises a bunch of errors due to missing flags (-std=c++11
among others).
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Clangd - how to set default flags to be used when there is no ...
If all files in a project use the same build flags, ... Clangd will assume the compile command is clang $FLAGS some_file.cc.
Read more >Optimize Options (Using the GNU Compiler Collection (GCC))
Turning on optimization flags makes the compiler attempt to improve the performance and/or code size at the expense of compilation time and possibly...
Read more >llvm fallback code computes wrong build flags #4102 - GitHub
While preparing a backport of meson for stretch, I noticed that the test-suite failed: ...
Read more >build:fallbacks [Tips for ABINIT users and developers]
Building the fallbacks within Abinit is mainly of interest to developers who want to experiment with compile flags and explore issues related to ......
Read more >The clang-cl /fallback mode - The LLVM Project Blog
The purpose of this flag is to make it easy to use clang-cl even in projects where Clang cannot yet compile all of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cgurps @sam-mccall I’ve added fallbackFlags according the document, but haven’t test it works or not, please give it a review and test #38