-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Revise CMake scripts to support ninja on Linux #42283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
|
Sorry to inform you that 8723e9e's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
8723e9e to
1c3ec6f
Compare
2f94bb4 to
4ea407c
Compare
|
hi, any update for this PR? seems it does not work for current |
|
Since #44210 is merged, could we close this PR? @zlsh80826 |
|
Since #44210 is merged, close this PR. |
|
很抱歉,经过我们的反复讨论,你的PR暂未达到合入标准,请阅读飞桨原生算子开发规范,你可以重新提交新的PR,我们先将此PR关闭,感谢你的贡献。 |
PR types
Others
PR changes
Others
Describe
修改 CMake 腳本使其支持 Linux 上的 Ninja 編譯
$(nproc)的用法, 改為透過 CMake ProcessorCount 取得機器上核心數, 並用NPROC變數紀錄使用, 以避開 Ninja 不支持$(var)語法的問題gflags下ExternalProjectAdd中利用$(MAKE)顯式調用BUILD_COMMAND,INSTALL_COMMAND的用法。ExternalProjectAdd預設會用cmake --build .來編譯 external projectrocksdb的BYPRODUCTS, 說明可參考這裡add_custom_target對ps.pb.h,ps.pb.cc新增 target, 並且補齊afs_wrapper對於ps.pb.h的依賴, 因為 afs_wrapper.cc 會 includeps.pb.h