Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Use clang-cl for Windows

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs

調査の方向性

llnode の binding.gyp 設定から始め、#1164 と #1537 の関連する変更を確認してください。Windows の MSBuild プロパティとコンパイラー環境変数が、生成された vcxproj とビルドフェーズにどのように到達するかを追跡してください。llnode が固定された MSBuild 引数の受け渡しに依存せずに Windows 上で clang-cl を選択できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Windows

I am trying to build the llnode module on Windows, which can only be built with clang-cl. The project previously (ab)used the passthrough of arguments to msbuild to configure the CLToolPath and CLToolExe properties, which has hence been fixed in #1164. (nodejs/llnode#321, nodejs/llnode#377)

I have attempted the following to no avail,

  1. Add in binding.gyp
"msbuild_settings": {
    "ClCompile": {
        "CLToolPath": "<(cl_tool_path)",
        "CLToolExe": "<(cl_tool_exe)",
    },
},

This does put the properties into the vcxproj, but in the ClCompile section. https://stackoverflow.com/a/31362960/12385184

  1. CC and CXX environment variables (https://github.com/nodejs/node-gyp/issues/2813#issuecomment-1462523117)

This does have some effect on the configure phase, but only accepts GCC (not CL) compatible compilers, and it has no effect on the building phase which still uses CL.exe.


This issue might be a case of #1537 if there is no special way to specify the compiler executable on Windows.

  • Node Version: node v18.20.4 npm 10.7.0
  • Platform: Microsoft Windows 11 Enterprise 10.0.22631 N/A Build 22631 x64-based PC
  • Compiler: MSBuild version 17.11.2+c078802d4 for .NET Framework 17.11.2.32701 MSVC 19.41.34120 for x64
  • Module: https://github.com/nodejs/llnode
主要言語
Python
スター
10.7k
フォーク
1.9k
平均マージ
1日 4時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

nodejs/node-gyp のほかの issue

nodejs/node-gyp の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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