Skip to content

Instantly share code, notes, and snippets.

@widlarizer
Last active July 23, 2026 09:27
Show Gist options
  • Select an option

  • Save widlarizer/4c250ca490ea0808e64c49873ab126fe to your computer and use it in GitHub Desktop.

Select an option

Save widlarizer/4c250ca490ea0808e64c49873ab126fe to your computer and use it in GitHub Desktop.
Yosys CMake presets
{
"version": 6,
"configurePresets": [
{
"name": "d",
"binaryDir": "build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"YOSYS_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/installed"
}
},
{
"name": "r",
"binaryDir": "build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"YOSYS_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/installed"
}
}
],
"buildPresets": [
{ "name": "d", "configurePreset": "d", "jobs": 24 },
{ "name": "r", "configurePreset": "r", "jobs": 24 },
{ "name": "di", "configurePreset": "d", "jobs": 24, "targets": [ "install" ] },
{ "name": "ri", "configurePreset": "r", "jobs": 24, "targets": [ "install" ] }
],
"workflowPresets": [
{
"name": "d",
"steps": [
{ "type": "configure", "name": "d" },
{ "type": "build", "name": "d" }
]
},
{
"name": "r",
"steps": [
{ "type": "configure", "name": "r" },
{ "type": "build", "name": "r" }
]
},
{
"name": "di",
"steps": [
{ "type": "configure", "name": "d" },
{ "type": "build", "name": "di" }
]
},
{
"name": "ri",
"steps": [
{ "type": "configure", "name": "r" },
{ "type": "build", "name": "ri" }
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment