Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

docs: Update build instructions to match CI - #164

Merged
erickzhao merged 1 commit into
electron:mainfrom
itsananderson:readme-build-instructions
Aug 26, 2025
Merged

docs: Update build instructions to match CI#164
erickzhao merged 1 commit into
electron:mainfrom
itsananderson:readme-build-instructions

Conversation

@itsananderson

Copy link
Copy Markdown
Member

When building locally with the cmake --build . instructions in the README, I get the following error:

cl : command line error D8016: '/Ox' and '/RTC1' command-line options are incompatible [D:\path\to\src\rcedit\b
uild\rcedit.vcxproj]

Sounds like this failure is because CMake is trying to include runtime error checks (/RTC1) but also produce fully optimized code (/Ox) which isn't supported.

I looked at what the CI job is doing, and it apparently passes a --config RelWithDebInfo flag to cmake. When I added that locally, the build succeeded. Updating the docs to include that flag seems like the easiest solution, but I'm open to other ideas as well (like only adding add_compile_options(/Ox /Os) for release builds).

Fixes #159

@itsananderson
itsananderson requested a review from a team as a code owner August 25, 2025 23:41
@itsananderson
itsananderson force-pushed the readme-build-instructions branch from 22d428a to 0d8c3b8 Compare August 25, 2025 23:58
@erickzhao
erickzhao merged commit 89caddd into electron:main Aug 26, 2025
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Got issue while building

2 participants