Skip to content

Add option for building with clang-cl and ninja#4807

Merged
llvm-beanz merged 1 commit intomicrosoft:mainfrom
llvm-beanz:cbieneman/clang-cl-hctbuild
Nov 22, 2022
Merged

Add option for building with clang-cl and ninja#4807
llvm-beanz merged 1 commit intomicrosoft:mainfrom
llvm-beanz:cbieneman/clang-cl-hctbuild

Conversation

@llvm-beanz
Copy link
Copy Markdown
Collaborator

This change adds a new -clang flag to hctbuild. It also fixes an issue where ninja builds were getting passed the MSBuild parallelization option.

Note: The clang-cl build does not compile successfully at this time. This change is just a required building block to get there.

This change adds a new `-clang` flag to hctbuild. It also fixes an issue
where ninja builds were getting passed the MSBuild parallization option.
@llvm-beanz llvm-beanz requested review from hekota and pow2clk November 21, 2022 16:36
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough!

Comment thread utils/hct/hctbuild.cmd
shift /1 & goto :parse_args
)
if "%1"=="-clang" (
set CMAKE_OPTS=%CMAKE_OPTS% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No such thing as clang++-cl I guess? 😉

@AppVeyorBot
Copy link
Copy Markdown

@llvm-beanz llvm-beanz merged commit eb1b3ac into microsoft:main Nov 22, 2022
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.

3 participants