Commit Graph
28 Commits
Author SHA1 Message Date
N. Engelhardt 450b5ae1b7 cmake: Fix Homebrew search on macOS 2026-09-23 16:04:42 +02:00
Miodrag Milanovic cdee781597 cmake: do not alter name in yosys_python_executable 2026-09-17 12:06:07 +02:00
Miodrag Milanovic 9f75ca1f98 Release version 0.69 2026-09-09 07:26:44 +02:00
Miodrag Milanovic 7a29365a3e cmake: fix wheels build 2026-09-07 12:38:32 +02:00
Miodrag Milanovic ab2610b816 pyosys: Check for required cxxheaderparser version, fixes #5974 2026-08-25 13:37:56 +02:00
Miodrag Milanovic 1643567be6 cleanup: remove status message 2026-08-24 11:23:35 +02:00
tangxifan 02dc5a82d7 [core] add a cmake option to disable unit test during compilation; Use cmake_current_source for submodule integration
[core] debug yosys version extraction

[core] debug

[core] now cache the cmake source dir

[core] debug

[core] debug kernel dependencies

[core] debug common include directories

[core] debug

[core] debug simlib_help.inc

[core] debug pmgen py path in cmake

[core] syntax

[core] debug flex source

[core] restore

[core] debug executable output as it now shows linking to .

[core] debug yosys-abc directory

[core] debug cmake share directory

[core] debug yosys abc

[core] restore shared directory location as yosys requires fixed location

[core] rework link target to yosys sub dir under build

[core] fixed the bug on yosys-config.install location for install

[core] cmake syntax

[core] correct the location for share directory

[core] debug

[core] debug

[core] debug

[core] enforce internal attributes; rename the YOSYS_ENABLE_UNIT_TESTS; use YOSYS_CMAKE_BINARY_DIR for all

[core] apply review comments

[core] rename

[core] change all the CMAKE_BINARY_DIR to YOSYS_CMAKE_BINARY_DIR

[core] replace CMAKE_SOURCE_DIR to YOSYS_CMAKE_SOURCE_DIR
2026-08-21 12:09:04 -07:00
Mohamed Gaber f5f930e186 cmake: use homebrew from PATH
The current version of UseHomebrew defaults to /opt/homebrew/Cellar and prioritizes it over anything currently existing in PATH. This has two issues:

- On x86_64 installations of Homebrew (including when emulating on ARM), the path is /usr/local/Cellar
- When building in a `nix develop` environment, the homebrew versions take priority, complicating testing

This addresses this issue by using the output of `brew --prefix`, doing nothing if brew is not in `PATH`.

Additionally, CMakeLists.txt was updated such that if YOSYS_ENABLE_HOMEBREW is defined as OFF, using Homebrew is skipped entirely.
2026-08-10 22:55:57 +03:00
Miodrag Milanovic 38e001a6ff Release version 0.68 2026-08-05 07:42:20 +02:00
Miodrag Milanovic 2d1509d1bc Release version 0.67 2026-07-09 10:13:26 +02:00
Miodrag Milanovic 2bc5aa5cf4 Update ABC as per 2026-06-25 2026-06-25 14:20:27 +02:00
Miodrag Milanovic a689342207 Remove trailing whitespaces 2026-06-23 07:24:59 +02:00
Miodrag Milanovic 0584587f9a Make compilation like by abc scripts 2026-06-16 10:07:45 +02:00
Miodrag Milanović 8eb3133076 Merge pull request #5950 from YosysHQ/version_fix
Fix version number and git origin
2026-06-09 16:49:28 +00:00
Miodrag Milanović 7b40b7a6f0 Merge pull request #5949 from YosysHQ/update_abc
MSVC full build
2026-06-09 16:28:00 +00:00
Miodrag Milanovic 160a4e5dfc For release branch always keep distance zero 2026-06-09 18:20:17 +02:00
Miodrag Milanovic 7d40a0b667 Fix version number and git origin 2026-06-09 17:39:48 +02:00
Miodrag Milanovic dc7c7bd825 verific: do not link TCL command line interface 2026-06-09 14:53:53 +02:00
Miodrag Milanovic 54a61650d0 Install DLL 2026-06-08 17:30:31 +02:00
Miodrag Milanovic da50b0d2dd Try enablind ABC build for MSVC 2026-06-08 16:55:11 +02:00
Catherine d50dc9a461 CMake: add all Homebrew packages to root search path.
Homebrew doesn't provide a merged (FHS) prefix and tools installed from
it cannot be expected to appear on PATH. Furthermore, XCode provides
some tools and headers (Flex, Bison) which must not be used if
a Homebrew alternative is installed.
2026-06-05 17:58:29 +00:00
Catherine c9e3ae8c9a CMake: improve and vendor upstream FindBISON module.
This change uses the `find_program(VALIDATOR)` functionality available
since CMake 3.25 to find the acceptable Bison executable instead of
failing if the first one found is too old. (macOS ships with Bison 2.6.)

This change also explicitly finds a usable M4 and ensures the Bison
command will use it. (macOS ships with an m4 which can fail if XCode
Tools aren't installed.)
2026-06-05 17:40:25 +00:00
Miodrag Milanović d7093743b8 Merge pull request #5932 from YosysHQ/cmake_fixes
Populate link_flags in yosys-config
2026-06-04 11:10:02 +00:00
Krystine Sherwin 72f5836fb1 docs: Resolving todos
Make explicit the location for the `CMakeUserPresets.json` file.
Update docs tests documentation.
Move `BUILD_DIR` and `PROGRAM_PREFIX` comments into the functional tests todo.
Add cmake to MacPorts/FreeBSD install instructions.
Add ccache to example `CMakeUserPresets.json` (it isn't otherwise documented, and is no longer as obvious without an `ENABLE_CCACHE` makevar).

Addressing comments
2026-06-04 20:35:52 +12:00
Krystine Sherwin 776995c74d WIP docs 2026-06-04 20:34:51 +12:00
Miodrag Milanovic 81bf182a4d Populate link_flags in yosys-config 2026-06-04 10:15:47 +02:00
CatherineandMohamed Gaber afc0e78d11 Update top-level Python project for CMake compatibility.
This commit reimplements the (no longer recommended) setuptools based
build system using a standards-based in-tree PEP517 build backend.
The implementation is partially based on
  https://codeberg.org/ziglang/zig-pypi/src/branch/main/make_wheels.py
which is licensed under BSD-0-clause.

It also adds a new option `YOSYS_BUILD_PYTHON_ONLY` that is available
only if the binary or the library aren't going to be installed, which
turns off these targets entirely, as well as some dependent ones
(e.g. tests).

Co-authored-by: Mohamed Gaber <[email protected]>
2026-06-03 09:03:23 +00:00
Catherine a727e7f6e7 Migrate build system to CMake
See #5895 for details.

This commit does not include CI or documentation changes.
2026-06-03 08:58:10 +00:00