Skip to content

Build RRA with the portable c++ compiler driver#5

Merged
davidliwei merged 1 commit into
mainfrom
fix/portable-cxx
Jun 12, 2026
Merged

Build RRA with the portable c++ compiler driver#5
davidliwei merged 1 commit into
mainfrom
fix/portable-cxx

Conversation

@davidliwei

Copy link
Copy Markdown
Owner

Why

The Codex review on mageck2-doc#3 correctly flagged that the RRA Makefile hardcoded CC = g++. On a system that provides only clang++ (no g++ on PATH), pip install would fail at the RRA build step — even though the docs say a generic C++ compiler is sufficient. (It only worked on macOS because g++ there is a clang shim.)

Fix

Change the Makefile default to the portable c++ driver, which resolves to g++ on Linux and clang++ on macOS. It can still be overridden, e.g. make CC=g++.

This makes the "a C++ compiler" prerequisite in the README and INSTALL docs actually true, rather than a g++-only requirement.

Testing

Verified make CC=c++ builds RRA, and a full pip install from a clean clone on Python 3.13 plus an end-to-end mageck2 test run (100-gene gene_summary) all succeed. CI exercises both the Linux (c++→g++) and macOS (c++→clang++) paths.

The RRA Makefile hardcoded CC = g++, so installation failed on systems
that provide only clang++ (no g++ on PATH), even though the docs state a
generic C++ compiler is sufficient (flagged in mageck2-doc PR #3 review).
Default to the portable 'c++' driver, which resolves to g++ on Linux and
clang++ on macOS; it can still be overridden via 'make CC=...'.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davidliwei davidliwei merged commit 1dc5b54 into main Jun 12, 2026
6 checks passed
@davidliwei davidliwei deleted the fix/portable-cxx branch June 12, 2026 20:38
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.

1 participant