Don't override 'LIBS' if '--enable-languages=rust'; use 'CRAB1_LIBS' (was: [PATCH 005/125] gccrs: libgrust: Add format_parser library)

2024-08-05 Thread Thomas Schwinge
Hi! On 2024-08-01T16:56:01+0200, Arthur Cohen wrote: > Compile libformat_parser and link to it. > --- a/gcc/rust/Make-lang.in > +++ b/gcc/rust/Make-lang.in > +LIBS += -ldl -lpthread That's still not correct. I've pushed to trunk branch commit 816c4de4d062c89f5b7a68f68f29b2b033f5b136 "Don't ov

[PATCH 005/125] gccrs: libgrust: Add format_parser library

2024-08-01 Thread Arthur Cohen
Compile libformat_parser and link to it. gcc/rust/ChangeLog: * Make-lang.in: Compile libformat_parser. * ast/rust-fmt.cc: New FFI definitions. * ast/rust-fmt.h: Likewise. * expand/rust-macro-builtins.cc (MacroBuiltin::format_args_handler): Call into libfor