mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/compile_commands: add another workaround
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
This commit is contained in:
parent
5457014c4a
commit
dd19110e8a
@ -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