Skip to content

Commit e7627b2

Browse files
Merge remote-tracking branch 'accellera-official/main'
2 parents f3742a1 + e7d46b0 commit e7627b2

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ As an example, here is a minimal `CMakeLists.txt` to compile the `simple_perf`
405405
SystemC example as a stand-alone application:
406406

407407
--- Start: CMakeLists.txt ---
408-
cmake_minimum_required(VERSION 3.5)
408+
cmake_minimum_required(VERSION 3.16)
409409
project(simple_perf CXX)
410410

411411
set (CMAKE_PREFIX_PATH /opt/systemc)

cmake/run-example.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
###############################################################################
3939

4040

41-
cmake_minimum_required(VERSION 3.5...3.31)
41+
cmake_minimum_required(VERSION 3.16...3.31)
4242

4343
if(NOT TEST_EXE)
4444
message(FATAL_ERROR " Usage: cmake -DTEST_EXE=<executable> [-DTEST_INPUT=<input-file>] \\\n"

src/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838
#
3939
###############################################################################
4040

41-
cmake_minimum_required(VERSION 3.8...3.31)
41+
cmake_minimum_required(VERSION 3.16...3.31)
4242

4343
###############################################################################
4444
# Build rules for SystemC library
4545
###############################################################################
4646

47+
option(SYSTEMC_UNITY_BUILD "Enable unity build" OFF)
48+
4749
function(add_systemc_library libName scBuildDefine)
4850

4951
add_library(${libName} ${ARGN})
@@ -124,6 +126,14 @@ function(add_systemc_library libName scBuildDefine)
124126
SOVERSION ${SystemCLanguage_SOVERSION}
125127
)
126128

129+
if(SYSTEMC_UNITY_BUILD)
130+
message(STATUS "Enable SystemC unity build")
131+
set_target_properties(${libName} PROPERTIES UNITY_BUILD ON)
132+
set_source_files_properties(sysc/utils/sc_utils_ids.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
133+
else()
134+
message(STATUS "Disable SystemC unity build")
135+
endif()
136+
127137
endfunction(add_systemc_library)
128138

129139
set(SYSTEMC_CORE_SRC

src/sysc/datatypes/fx/sc_fxnum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ to_string( const scfx_ieee_double&,
664664
sc_numrep,
665665
int,
666666
sc_fmt,
667-
const scfx_params* = 0 );
667+
const scfx_params*);
668668

669669

670670
// explicit conversion to character string

0 commit comments

Comments
 (0)