]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: import: Add cli extern crate resolution
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 14 Jun 2023 13:20:21 +0000 (15:20 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:58 +0000 (18:55 +0100)
commite3360d2ba200e334a320cb8d49257e084b4e5233
treead215e776247138a1b6a8371772e1ac305be2f36
parent7e74b450d24074519c8c93dc55c507931b329c5a
gccrs: import: Add cli extern crate resolution

This commit add the ability to specify the path to an extern crate
through the -frust-extern cli option. Path given as cli argument
shall resolve to the exact extern crate location.

gcc/rust/ChangeLog:

* metadata/rust-imports.h: Make the function to load a given
file public.
* rust-session-manager.cc (Session::load_extern_crate): Change
path resolution depending on extern crate declaration in cli
arguments.

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