Skip to content
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

请问下is_os 和 is_plat 两个API的区别是什么? #16

Closed
longbai opened this issue Aug 9, 2016 · 1 comment
Closed

请问下is_os 和 is_plat 两个API的区别是什么? #16

longbai opened this issue Aug 9, 2016 · 1 comment

Comments

@longbai
Copy link

longbai commented Aug 9, 2016

看起来都一样

@waruqi
Copy link
Member

waruqi commented Aug 9, 2016

你可以看下,xmake的wiki接口文档

里面有相关者两个api的介绍:

is_os

主要是用于判断,当前编译的程序是在什么os上运行的,例如:windows/mingw编译平台编译出来的,都是 windows的 os系统。

iphoneos/watchos编译平台编译出来的都是 ios系统,等等。。

is_plat

主要是用于区分编译平台,也就是:xmake f --plat=macosx 配置的参数值

@waruqi waruqi closed this as completed Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants