diff options
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index 448a248be..f22174e0e 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -160,7 +160,9 @@ package body Ghdlsynth is pragma Assert (Arg'First = 1); begin if Arg'Last > 7 and then Arg (1 .. 7) = "--work=" then - if not Libraries.Decode_Work_Option (Arg, True, False) then + if Libraries.Decode_Work_Option (Arg) then + Libraries.Load_Work_Library (True); + else return Null_Iir; end if; else |