diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-18 17:26:07 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-04-28 16:26:38 +0000 |
commit | 1fb32d7293b8a1849e23502fd58afa46d670ec94 (patch) | |
tree | e1709f62311c8570dd61224e61245279150965ff /gcc/rust/lang.opt | |
parent | fef6c560017c33a4d5e439067bad09a85630f851 (diff) | |
download | gcc-devel/rust/master.tar.gz |
cli: Add frust-extern optiondevel/rust/master
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>
Diffstat (limited to 'gcc/rust/lang.opt')
-rw-r--r-- | gcc/rust/lang.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/lang.opt b/gcc/rust/lang.opt index e05dd72870a..537b93fa545 100644 --- a/gcc/rust/lang.opt +++ b/gcc/rust/lang.opt @@ -62,6 +62,10 @@ frust-crate= Rust Joined RejectNegative -frust-crate=<name> Set the crate name for the compilation +frust-extern= +Rust RejectNegative Joined +-frust-extern= Specify where an external library is located + frust-debug Rust Var(flag_rust_debug) Dump various Rust front end internals. |