1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
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:
bors[bot] 2023-05-23 10:44:46 +00:00 committed by GitHub
commit 8408d69ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)