diff options
-rw-r--r-- | src/ghdldrv/ghdl_llvm.adb | 2 | ||||
-rw-r--r-- | src/synth/synth-expr.adb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdl_llvm.adb b/src/ghdldrv/ghdl_llvm.adb index c170c4b56..f18741bd6 100644 --- a/src/ghdldrv/ghdl_llvm.adb +++ b/src/ghdldrv/ghdl_llvm.adb @@ -21,6 +21,7 @@ with Ghdlprint; with Ghdldrv; with Ghdlvpi; with Ghdlxml; +with Ghdlsynth_Maybe; procedure Ghdl_Llvm is begin @@ -29,6 +30,7 @@ begin Ghdlmain.Version_String := new String'("llvm code generator"); Ghdldrv.Backend := Ghdldrv.Backend_Llvm; Ghdldrv.Register_Commands; + Ghdlsynth_Maybe.Register_Commands; Ghdllocal.Register_Commands; Ghdlprint.Register_Commands; Ghdlvpi.Register_Commands; diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index d24486f3d..26318bcf8 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -43,6 +43,10 @@ with Netlists.Builders; use Netlists.Builders; with Netlists.Locations; use Netlists.Locations; package body Synth.Expr is + -- As log2(3m) is directly referenced, the program must be linked with -lm + -- (math library) on unix systems. + pragma Linker_Options ("-lm"); + function Synth_Name (Syn_Inst : Synth_Instance_Acc; Name : Node) return Value_Acc; |