mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19602
19602: dist/tools/compile_commands: add another workaround r=chrysn a=maribu ### Contribution description Filter out GCC only `--param=min-pagesize=0` in `clangd` mode. This fixes compilation of rust applications, that now fails with: thread 'main' panicked at 'Unable to generate bindings: ClangDiagnostic("error: argument unused during compilation: '--param=min-pagesize=0' [-Wunused-command-line-argument]\n")', /home/maribu/.cargo/git/checkouts/rust-riot-sys-d12733b89271907c/b4bd4bd/build.rs:224:10 Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
commit
8408d69ea8
@ -335,6 +335,8 @@ if __name__ == '__main__':
|
||||
# it's called -mlong-calls in LLVM, but we don't need it for clangd
|
||||
# as we do not generate code anyway
|
||||
'-mlongcalls',
|
||||
# GCC specific diagnostics: Tell GCC address space starts at 0
|
||||
'--param=min-pagesize=0',
|
||||
]
|
||||
_args.filter_out.extend(flags)
|
||||
generate_compile_commands(_args)
|
||||
|
Loading…
Reference in New Issue
Block a user