Skip to content

Commit 4891317

Browse files
committed
parmys: Use .so for yosys plugin when building with CMake
Yosys expects its plugins to be .so files, even on macOS. The Make backend already did this correctly, but CMake was still using the default of `.dylib` for macOS. This gets vtr_reg_basic working on macOS.
1 parent 3db98cc commit 4891317

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parmys/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ target_link_libraries(parmys
3535
)
3636

3737
set_target_properties(parmys PROPERTIES PREFIX "") # Avoid extra 'lib' prefix
38+
set_target_properties(parmys PROPERTIES SUFFIX ".so") # Yosys expects the suffix to be '.so' even on macOS
3839

3940
add_custom_target(parmys-plugin ALL
4041
DEPENDS parmys

0 commit comments

Comments
 (0)