diff --git a/Changes b/Changes index ab0f73c49..bac574aa7 100644 --- a/Changes +++ b/Changes @@ -10,6 +10,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix to ignore Unicode UTF-8 BOM sequences, msg2576. [HyungKi Jeong] +**** Fix std:: build error, bug1322. + * Verilator 3.924 2018-06-12 diff --git a/src/V3Global.h b/src/V3Global.h index a194bae45..2716dd75e 100644 --- a/src/V3Global.h +++ b/src/V3Global.h @@ -22,6 +22,10 @@ #define _V3GLOBAL_H_ 1 #include "config_build.h" +#ifndef HAVE_CONFIG_BUILD +# error "Something failed during ./configure as config_build.h is incomplete." +#endif + #include "verilatedos.h" #include diff --git a/src/VlcMain.cpp b/src/VlcMain.cpp index ef7781b7b..a00fd72ee 100644 --- a/src/VlcMain.cpp +++ b/src/VlcMain.cpp @@ -19,6 +19,13 @@ //************************************************************************* // Cheat for speed and compile .cpp files into one object +#include "config_build.h" +#ifndef HAVE_CONFIG_BUILD +# error "Something failed during ./configure as config_build.h is incomplete." +#endif + +#include "verilatedos.h" + #define _V3ERROR_NO_GLOBAL_ 1 #include "V3Error.cpp" #include "V3String.cpp" diff --git a/src/config_build.h.in b/src/config_build.h.in index e0cf99e09..ffb7368d7 100644 --- a/src/config_build.h.in +++ b/src/config_build.h.in @@ -78,3 +78,7 @@ using namespace std; //**** OS and compiler specifics #include "verilatedos.h" + +//********************************************************************** +//**** This file sometimes gets truncated, so check in consumers +#define HAVE_CONFIG_BUILD