Browse Source

Fixed FMT header define

Eyck Jentzsch 4 months ago
parent
commit
1947a2114f

+ 2
- 0
gen_input/templates/vm-vm_CORENAME.cpp.gtl View File

@@ -38,7 +38,9 @@
38 38
 #include <iss/llvm/vm_base.h>
39 39
 #include <util/logging.h>
40 40
 
41
+#ifndef FMT_HEADER_ONLY
41 42
 #define FMT_HEADER_ONLY
43
+#endif
42 44
 #include <fmt/format.h>
43 45
 
44 46
 #include <array>

+ 2
- 0
incl/iss/arch/riscv_hart_msu_vp.h View File

@@ -40,7 +40,9 @@
40 40
 #include "iss/instrumentation_if.h"
41 41
 #include "iss/log_categories.h"
42 42
 #include "iss/vm_if.h"
43
+#ifndef FMT_HEADER_ONLY
43 44
 #define FMT_HEADER_ONLY
45
+#endif
44 46
 #include <fmt/format.h>
45 47
 #include <array>
46 48
 #include <elfio/elfio.hpp>

+ 2
- 0
incl/iss/debugger/riscv_target_adapter.h View File

@@ -40,7 +40,9 @@
40 40
 
41 41
 #include <array>
42 42
 #include <memory>
43
+#ifndef FMT_HEADER_ONLY
43 44
 #define FMT_HEADER_ONLY
45
+#endif
44 46
 #include <fmt/format.h>
45 47
 #include <util/logging.h>
46 48
 

+ 2
- 0
src/internal/vm_rv32gc.cpp View File

@@ -38,7 +38,9 @@
38 38
 #include <iss/llvm/vm_base.h>
39 39
 #include <util/logging.h>
40 40
 
41
+#ifndef FMT_HEADER_ONLY
41 42
 #define FMT_HEADER_ONLY
43
+#endif
42 44
 #include <fmt/format.h>
43 45
 
44 46
 #include <array>

+ 2
- 0
src/internal/vm_rv32imac.cpp View File

@@ -38,7 +38,9 @@
38 38
 #include <iss/llvm/vm_base.h>
39 39
 #include <util/logging.h>
40 40
 
41
+#ifndef FMT_HEADER_ONLY
41 42
 #define FMT_HEADER_ONLY
43
+#endif
42 44
 #include <fmt/format.h>
43 45
 
44 46
 #include <array>

+ 2
- 0
src/internal/vm_rv64gc.cpp View File

@@ -38,7 +38,9 @@
38 38
 #include <iss/llvm/vm_base.h>
39 39
 #include <util/logging.h>
40 40
 
41
+#ifndef FMT_HEADER_ONLY
41 42
 #define FMT_HEADER_ONLY
43
+#endif
42 44
 #include <fmt/format.h>
43 45
 
44 46
 #include <array>

+ 2
- 0
src/internal/vm_rv64i.cpp View File

@@ -38,7 +38,9 @@
38 38
 #include <iss/llvm/vm_base.h>
39 39
 #include <util/logging.h>
40 40
 
41
+#ifndef FMT_HEADER_ONLY
41 42
 #define FMT_HEADER_ONLY
43
+#endif
42 44
 #include <fmt/format.h>
43 45
 
44 46
 #include <array>