-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
support Ninja, establish dependencies relationship between paddle with third_party #33140
Conversation
Thanks for your contribution! |
fc79d4f
to
8071b85
Compare
8071b85
to
a5c1097
Compare
a5c1097
to
4071794
Compare
4071794
to
19bc822
Compare
19bc822
to
470add1
Compare
Sorry to inform you that 470add1's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
Sorry to inform you that a1b0645's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
f7eb625
to
de56a33
Compare
de56a33
to
3a6cc01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Others
Describe
在Windows,Ninja具有更好的编译速度与稳定性,因此Paddle支持Ninja编译;
在Paddle编译依赖关系中,如果在cmake中指定
Target A
依赖文件B
,而文件B
依赖Target C
,对于make或MSVC构建系统中,无需明确描述文件B
的来源,会缺省建立Target A
与Target C
的依赖关系。但是在Ninja构建系统中,其要求严格明确的构建规则,必须要指明
文件B
的来源,否则会报错:在Paddle中第三方库中大量使用了如上语法形式,因此需通过
ExternalProjectAdd
语法BUILD_BYPRODUCTS
对产出文件进行了绑定,以建立正确的Ninja编译规则,Windows CI同时会开启Ninja编译检查。