]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: cli: Add frust-extern option
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 18 Apr 2023 15:26:07 +0000 (17:26 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:15 +0000 (18:34 +0100)
commit1ca5d5f84c96bb9a47eeb1bbdeb7ae695f7a759e
treece224ae43ee8b2b213fc336ccbf1cf5ae6a29cf2
parent582accedb77b7b957e1322966a0875491156d13a
gccrs: cli: Add frust-extern option

Add a new option to gather extern crates location.

gcc/rust/ChangeLog:

* lang.opt: Add frust-extern option.
* rust-session-manager.cc (Session::handle_extern_option): Add
frust-extern option handler.
* rust-session-manager.h (struct Session): Add an unordered map
to store library name and locations.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/lang.opt
gcc/rust/rust-session-manager.cc
gcc/rust/rust-session-manager.h