From 47547a132eb132778117ca5c4eb3394df0500898 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 9 Jun 2020 21:08:55 +0200 Subject: vhdl: allows --work between files for -c. Fix #1362 --- src/libraries.ads | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/libraries.ads') diff --git a/src/libraries.ads b/src/libraries.ads index 1c954c938..66a80a747 100644 --- a/src/libraries.ads +++ b/src/libraries.ads @@ -167,11 +167,12 @@ package Libraries is -- If there are severals entities, return NULL_IIR; function Find_Entity_For_Component (Name: Name_Id) return Iir_Design_Unit; - -- Decode '--work=NAME' command line option and set the name of the - -- work library. The library has to be loaded later by calling - -- Load_Work_Library. - -- Return false if NAME is not a valid name. - function Decode_Work_Option (Opt : String) return Boolean; + -- Decode '--work=NAME' command line option and return the identifier + -- for the library. + -- To effectively use the library, assign Work_Library_Name and load the + -- library by calling Load_Work_Library. + -- Return Null_Identifier if NAME is not a valid name. + function Decode_Work_Option (Opt : String) return Name_Id; -- Get the chain of libraries. Can be used only to read (it musn't be -- modified). -- cgit v1.2.3