aboutsummaryrefslogtreecommitdiffstats
path: root/src/libraries.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-07-20 05:33:27 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-20 05:33:27 +0200
commit866e24bc5b163da2aad0f6bb5f63b7022cc1fe5c (patch)
tree9cbdb48dc0b91aa9e37fe24b9167d5bc565a8b08 /src/libraries.adb
parentfeb9de82f7305caf3437ed8ab3dd01deba395362 (diff)
downloadghdl-866e24bc5b163da2aad0f6bb5f63b7022cc1fe5c.tar.gz
ghdl-866e24bc5b163da2aad0f6bb5f63b7022cc1fe5c.tar.bz2
ghdl-866e24bc5b163da2aad0f6bb5f63b7022cc1fe5c.zip
Refine previous patch: don't keep obsolete units of current analyzed file.
Diffstat (limited to 'src/libraries.adb')
-rw-r--r--src/libraries.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libraries.adb b/src/libraries.adb
index 6905edfb4..f84a36304 100644
--- a/src/libraries.adb
+++ b/src/libraries.adb
@@ -1742,7 +1742,7 @@ package body Libraries is
+Get_Design_File_Filename (Design_File));
raise Compilation_Error;
elsif Get_Date (Design_Unit) = Date_Obsolete then
- Error_Msg_Sem (+Design_Unit, "%n is not anymore its source file",
+ Error_Msg_Sem (+Design_Unit, "%n has been obsoleted",
+Get_Library_Unit (Design_Unit));
raise Compilation_Error;
end if;