Skip to content

fix: macOS build with Homebrew LLVM#2

Merged
zarubaf merged 1 commit intomainfrom
fix/macos-build-guide
Mar 12, 2026
Merged

fix: macOS build with Homebrew LLVM#2
zarubaf merged 1 commit intomainfrom
fix/macos-build-guide

Conversation

@huettern
Copy link
Copy Markdown
Collaborator

@huettern huettern commented Mar 12, 2026

Summary

  • Add Homebrew LLVM to macOS prerequisites (Apple Clang lacks <source_location> and coroutine support)
  • Pass CMAKE_C_COMPILER/CMAKE_CXX_COMPILER through to the yosys-slang and Verilator ExternalProjects
  • Add missing flex include path in FetchYosys.cmake and FetchVerilator.cmake
  • Document git submodule update --init --recursive and platform-specific build commands
  • Fix tests/fsm_extract/Makefile grouped-target (&:) syntax for Make 3.81 (macOS default)

Test plan

  • Clean build on macOS with brew install llvm and the documented commands
  • ctest --test-dir build --output-on-failure — 27/27 tests pass
  • Clean build on Linux with default system compiler

🤖 Generated with Claude Code

Apple Clang lacks <source_location> (C++20), which slang requires.
This adds Homebrew LLVM to macOS prerequisites, passes the compiler
through to the yosys-slang ExternalProject, adds the missing flex
include path for Yosys, and documents the submodule init step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@huettern huettern requested a review from zarubaf March 12, 2026 12:55
@zarubaf zarubaf merged commit 78b9bcb into main Mar 12, 2026
1 check passed
@zarubaf
Copy link
Copy Markdown
Owner

zarubaf commented Mar 12, 2026

Noice <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants