Wasi + Emscripten: configure behavior with --enable-optimizations seems incorrect?
オープン
まだ誰も着手していません。
build
OS-emscripten
OS-wasi
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
configure.ac sets DEF_MAKE_ALL_RULE to:
- if
--enable-optimizationsis passed, thenprofile-opt - if
ac_sys_systemisEmscriptenorWASIthenbuild_wasm - if neither of these, then
build_all.
build_wasm is a modified version of the build_all target that drops some targets that don't build correctly in webassembly targets or are unneeded. This logic hasn't been added for the case when --enable-optimizations is passed. I think the best solution for now would be to check for these targets with --enable-optimizations and error out. I don't think PGO will work on the wasm targets without tinkering either way.
Linked PRs
- gh-126687
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
configure.ac の DEF_MAKE_ALL_RULE ロジックから始め、--enable-optimizations パスと Emscripten および WASI の build_wasm パスを比較してください。wasm ターゲットの動作を確認し、サポートされていない最適化構成が説明どおり拒否されることを確認してください。gh-126687 は issue にリンクされています。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, wasm
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 30/100