简体   繁体   中英

Premake4: How to set mac os x xcode C++ project to have option “build active configuration only” active?

Problem: when you do not specify that option xcode project tries to build all it can (in my case not only i386 but also some other archs which I do not have library's for and I do not need.)

Current solution - open generated xcode project and set that option in all configurations.

Desired solution - I need to set that option inside premake script.

Question - how to do such much desired thing?

The premake stable bitbucket repo now does this by default for debug configurations. https://bitbucket.org/premake/premake-stable/changeset/da9d0562b09c

If you really only want i386 (32 bits), then I guess this is what you'd need in your Premake script:

platforms { "x32" }

You probably had this until now:

platforms { "native", "universal" }

Which on virtually every Intel Mac means x64 when going native and x32 + x64 when going universal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM