aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-04-09 13:43:01 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2024-04-10 13:24:42 +0000
commit2dff71f6fcbd84570e282b6c884ae246715c621e (patch)
tree88245e742dfc1613be585616b578122ab8f00ae7 /gcc
parentb6e047e9289fcc98e9e386d3df0c2b63e01b0fce (diff)
downloadgcc-2dff71f6fcbd84570e282b6c884ae246715c621e.zip
gcc-2dff71f6fcbd84570e282b6c884ae246715c621e.tar.gz
gcc-2dff71f6fcbd84570e282b6c884ae246715c621e.tar.bz2
rust: Add --offline flag to cargo when building Rust components.
gcc/rust/ChangeLog: * Make-lang.in: Add --offline flag to cargo invocation.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/Make-lang.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in
index 1efab49..bec02f7 100644
--- a/gcc/rust/Make-lang.in
+++ b/gcc/rust/Make-lang.in
@@ -421,8 +421,9 @@ rust/%.o: rust/lex/%.cc
%.toml:
echo $@
+# TODO: Improve `cargo` invocation with host specific flags, possibly creating a $(CARGO) variable?
rust/libformat_parser.a: $(srcdir)/../libgrust/libformat_parser/Cargo.toml $(wildcard $(srcdir)/../libgrust/libformat_parser/src/*.rs)
- cargo build --manifest-path $(srcdir)/../libgrust/libformat_parser/Cargo.toml # FIXME: Not always release, right?
+ cd $(srcdir)/../libgrust/libformat_parser && cargo build --offline # FIXME: Not always release, right?
cp $(srcdir)/../libgrust/libformat_parser/target/debug/liblibformat_parser.a $@
# build all rust/parse files in rust folder, add cross-folder includes