[BUG] cmake generate fails with msvc and clang-cl

オープン
#1,611 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@imrichardcole がすでに取り組んでいます。

2024年9月3日 から。

評価

この issue はまだ評価されていません。

説明

os:windows

Describe the bug
A clear and concise description of what the bug is.

cmake fails at
https://github.com/google/benchmark/blob/main/CMakeLists.txt#L298

when using cmake on msvc with clang-cl settings
https://learn.microsoft.com/en-us/cpp/build/clang-support-cmake?view=msvc-170

System
Which OS, compiler, and compiler version are you using:

  • OS: Windows
  • Compiler and version:
1> [CMake] CMAKE_C_COMPILER= C:/PROGRAM FILES/MICROSOFT VISUAL STUDIO/2022/COMMUNITY/VC/Tools/Llvm/x64/bin/clang-cl.exe
1> [CMake] CMAKE_CXX_COMPILER= C:/PROGRAM FILES/MICROSOFT VISUAL STUDIO/2022/COMMUNITY/VC/Tools/Llvm/x64/bin/clang-cl.exe

To reproduce
Steps to reproduce the behavior:

  1. sync to commit ...
  2. cmake/bazel...
  3. make ...
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

主要言語
C++
スター
10.5k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/benchmark のほかの issue

google/benchmark の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。