circt/tools/circt-translate
Fabian Schuiki b525c6e1a7
[circt-translate] Make ImportVerilog registration conditional
Move the call to `registerFromVerilogTranslation()` from the
`InitAllTranslations.h` header, where it is executed unconditionally,
into the `circt-translate.cpp` file, where it can more easily be guarded
behind an ifdef. This fixes builds with the Slang frontend disabled.

In the future we may want to generated a header with macros that reflect
which optional parts are enabled or disabled. `InitAllTranslations.h`
could then use those macros to conditionally register the ImportVerilog
translation.
2024-02-21 12:12:23 -08:00
..
CMakeLists.txt [circt-translate] Make ImportVerilog registration conditional 2024-02-21 12:12:23 -08:00
circt-translate.cpp [circt-translate] Make ImportVerilog registration conditional 2024-02-21 12:12:23 -08:00