diff options
author | Tristan Gingold | 2014-11-05 20:53:35 +0100 |
---|---|---|
committer | Tristan Gingold | 2014-11-05 20:53:35 +0100 |
commit | 44e1fbf53dcf4718b197506a9a625c19b6baf924 (patch) | |
tree | 85379bfbbca2a697cc603862e455d447a407555f /src/ghdldrv/ghdlcomp.adb | |
parent | 81cd0858f805c9339cce3a85c620ec7d44c6d5a7 (diff) | |
download | ghdl-44e1fbf53dcf4718b197506a9a625c19b6baf924.tar.gz ghdl-44e1fbf53dcf4718b197506a9a625c19b6baf924.tar.bz2 ghdl-44e1fbf53dcf4718b197506a9a625c19b6baf924.zip |
ghdldrv: reflect --disp-config changes for ghdl_mcode.
Diffstat (limited to 'src/ghdldrv/ghdlcomp.adb')
-rw-r--r-- | src/ghdldrv/ghdlcomp.adb | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/ghdldrv/ghdlcomp.adb b/src/ghdldrv/ghdlcomp.adb index ba755af..ef81487 100644 --- a/src/ghdldrv/ghdlcomp.adb +++ b/src/ghdldrv/ghdlcomp.adb @@ -34,7 +34,6 @@ with Libraries; with Std_Package; with Files_Map; with Version; -with Default_Pathes; package body Ghdlcomp is @@ -451,14 +450,14 @@ package body Ghdlcomp is is pragma Unreferenced (Cmd); begin - return Name = "--dispconfig"; + return Name = "--dispconfig" or else Name = "--disp-config"; end Decode_Command; function Get_Short_Help (Cmd : Command_Dispconfig) return String is pragma Unreferenced (Cmd); begin - return "--dispconfig Disp tools path"; + return "--disp-config Disp tools path"; end Get_Short_Help; procedure Perform_Action (Cmd : in out Command_Dispconfig; @@ -469,27 +468,12 @@ package body Ghdlcomp is pragma Unreferenced (Cmd); begin if Args'Length /= 0 then - Error ("--dispconfig does not accept any argument"); + Error ("--disp-config does not accept any argument"); raise Errorout.Option_Error; end if; - Put ("command line prefix (--PREFIX): "); - if Prefix_Path = null then - Put_Line ("(not set)"); - else - Put_Line (Prefix_Path.all); - end if; - Setup_Libraries (False); - - Put ("environment prefix (GHDL_PREFIX): "); - if Prefix_Env = null then - Put_Line ("(not set)"); - else - Put_Line (Prefix_Env.all); - end if; + Disp_Config_Prefixes; - Put_Line ("default prefix: " & Default_Pathes.Prefix); - Put_Line ("actual prefix: " & Prefix_Path.all); Put_Line ("command_name: " & Ada.Command_Line.Command_Name); Put_Line ("default library pathes:"); for I in 2 .. Get_Nbr_Pathes loop |