Skip to content

Commit 2033ae8

Browse files
Update CMakeLists.txt
reduce build proc
1 parent ecd77cd commit 2033ae8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,13 @@ if (${WITH_PARMYS})
7878

7979
# Synlig integration (manages Surelog and UHDM internally)
8080

81-
# Synlig integration (manages Surelog and UHDM internally)
8281
set(SYNLIG_PREFIX_DIR "${CMAKE_BINARY_DIR}/synlig")
8382
set(SYNLIG_SOURCE_DIR "${SYNLIG_PREFIX_DIR}/src/synlig")
84-
83+
8584
# Clone Synlig repository and ensure submodules are synced before building
8685
ExternalProject_Add(synlig
8786
PREFIX ${SYNLIG_PREFIX_DIR}
88-
87+
8988
# Clone the Synlig repository
9089
GIT_REPOSITORY https://github.com/chipsalliance/synlig.git
9190
GIT_TAG main
@@ -100,11 +99,6 @@ if (${WITH_PARMYS})
10099
# Disable submodule update command (not needed, since it's included in cloning)
101100
UPDATE_COMMAND ""
102101

103-
# Ensure build directory exists before building
104-
##BUILD_COMMAND ${MAKE_PROGRAM} -C ${SYNLIG_SOURCE_DIR} install DESTDIR=${CMAKE_BINARY_DIR}/bin/synlig_install -j4
105-
##INSTALL_COMMAND ""
106-
##CONFIGURE_COMMAND ""
107-
108102
# Pass necessary paths and set environment variables
109103
CMAKE_CACHE_ARGS
110104
"-DCMAKE_BUILD_TYPE:STRING=Release"
@@ -113,17 +107,19 @@ if (${WITH_PARMYS})
113107
"-DUHDM_INSTALL_DIR=${CMAKE_BINARY_DIR}"
114108
"-DBUILD_DIR=${CMAKE_BINARY_DIR}/synlig-build"
115109
"-DEXPORT_PATH=${CMAKE_BINARY_DIR}/synlig_install/usr/local/bin:$ENV{PATH}"
110+
"-DCMAKE_JOB_POOLS:STRING=compile=1;link=1"
116111

117112
LOG_BUILD ON
118113
LOG_UPDATE ON
119114
LOG_INSTALL ON
120115
LOG_CONFIGURE OFF
121116
LOG_OUTPUT_ON_FAILURE ON
122117

123-
# Ensure dependencies like Yosys are built first
124-
DEPENDS yosys
118+
# Ensure dependencies like Yosys and Surelog are built first
119+
DEPENDS yosys
125120
)
126121

122+
127123
endif ()
128124
endif ()
129125

0 commit comments

Comments
 (0)