aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-01 21:12:45 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-01 21:12:45 +0200
commit4227085dc8d1916df701ab4da21c30a15bb5a726 (patch)
treec8635049fef99de4c5a8a1cfdff17fed8832804b /src
parentf62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f (diff)
downloadghdl-4227085dc8d1916df701ab4da21c30a15bb5a726.tar.gz
ghdl-4227085dc8d1916df701ab4da21c30a15bb5a726.tar.bz2
ghdl-4227085dc8d1916df701ab4da21c30a15bb5a726.zip
ghdlsynth: fix handling of --work within source files.
Diffstat (limited to 'src')
-rw-r--r--src/ghdldrv/ghdlsynth.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb
index 1ce7d3e36..0789e5a56 100644
--- a/src/ghdldrv/ghdlsynth.adb
+++ b/src/ghdldrv/ghdlsynth.adb
@@ -281,6 +281,7 @@ package body Ghdlsynth is
if Id = Null_Identifier then
return Null_Iir;
end if;
+ Libraries.Work_Library_Name := Id;
Libraries.Load_Work_Library (True);
else
Ghdlcomp.Compile_Load_File (Arg);