emscripten-core/emscripten

Compiler information extraction significantly slower compared to vanilla Clang

開放

#13,004 建立於 2020年12月10日

 (8 則留言) (0 個反應) (0 位負責人)C++ (3,519 個分叉)batch import
help wantedwontfix

倉庫指標

星標
 (27,361 顆星)
PR 合併指標
 (平均合併 19天 10小時) (30 天內合併 147 個 PR)

描述

Extracting some basic information (version, target, header search paths) from emcc is significantly slower compared to vanilla Clang. Compare:

$ time { clang++ --version; clang++ -dumpmachine; clang++ -v -x c++ -E - </dev/null; }
real    0m0.029s

$ time { emcc --version; emcc -dumpmachine; emcc -v -x c++ -E - </dev/null; }
real    0m0.266s

Some build systems (e.g., build2) extract this information on the fly (in order to implement high-fidelity change detection) and the slowdown is noticeable. I wonder if anything can done about this?

貢獻者指南