Use clang-cl for Windows
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- nodejs
調査の方向性
llnode の binding.gyp 設定から始め、#1164 と #1537 の関連する変更を確認してください。Windows の MSBuild プロパティとコンパイラー環境変数が、生成された vcxproj とビルドフェーズにどのように到達するかを追跡してください。llnode が固定された MSBuild 引数の受け渡しに依存せずに Windows 上で clang-cl を選択できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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,
- 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
CCandCXXenvironment 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/node-gyp のほかの issue
-
dependencies github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
MSYS2
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nodejs/node-gyp の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·