Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building project with clang-cl config does not work with ninja #6052

Closed
Raildex opened this issue Jan 10, 2025 · 1 comment
Closed

Building project with clang-cl config does not work with ninja #6052

Raildex opened this issue Jan 10, 2025 · 1 comment
Labels
Milestone

Comments

@Raildex
Copy link

Raildex commented Jan 10, 2025

Xmake Version

v2.9.6+HEAD.abd15c255

Operating System Version and Architecture

Windows 11

Describe Bug

When you run xmake f -m debug --toolchain=clang-cl and create a project using xmake project -k ninja,
the resulting ninja has no "cxx" rule, which results in a compilation error.

Expected Behavior

Compilation with Ninja should work

Project Configuration

set_project("test")
target("test")
add_files("test.cpp")
target_end()

Additional Information and Error Logs

Raildex@RDX Neuer Ordner> xmake f -m debug --toolchain=clang-cl
Raildex@RDX Neuer Ordner> xmake project -k ninja
create ok!
Raildex@RDX Neuer Ordner> ninja test
ninja: error: build.ninja:55: unknown build rule 'cxx'
build build/.objs/test/windows/x64/debug/test.cpp.obj: cxx test.cpp
                                                       ^ near here
@waruqi
Copy link
Member

waruqi commented Jan 22, 2025

try this patch #6106

@waruqi waruqi added this to the v2.9.8 milestone Jan 22, 2025
waruqi added a commit that referenced this issue Jan 22, 2025
@waruqi waruqi closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants