Comments (6)
Closing as resolved 5 years after it was resolved 🙃
from genie.
@mmicko can you check this issue?
from genie.
Sorry for late reply, but problem with XCode and VS is that they do not have per-file compile options but just per project. What I can add is that in case it is C++ project (or ForceCPP) to use buildoptions + buildoptions_cpp and for C projects buildoptions + buildoptions_c. Would that be fine for you ?
from genie.
XCode (at least XCode 5) has a separate project level option for C vs C++ build options (it's OTHER_CPLUSPLUSFLAGS for C++)
I'm not sure how Genie / Premake work internally, but would it be possible to assign buildoptions + buildoptions_cpp to OTHER_CPLUSPLUSFLAGS and buildoptions + buildoptions_c to OTHER_CFLAGS?
from genie.
Yes it could be possible.
There is line
xcode.printlist(table.join(flags, cfg.buildoptions), 'OTHER_CFLAGS')
so new code would be :
xcode.printlist(table.join(flags, cfg.buildoptions, cfg.buildoptions_c),
'OTHER_CFLAGS')
xcode.printlist(table.join(flags, cfg.buildoptions, cfg.buildoptions_cpp), '
OTHER_CPLUSPLUSFLAGS')
On Tue, Jun 9, 2015 at 7:10 PM, Jeff Ward [email protected] wrote:
XCode (at least XCode 5) has a separate project level option for C vs C++
build options (it's OTHER_CPLUSPLUSFLAGS for C++)I'm not sure how Genie / Premake work internally, but would it be possible
to assign buildoptions + buildoptions_cpp to OTHER_CPLUSPLUSFLAGS and
buildoptions + buildoptions_c to OTHER_CFLAGS?—
Reply to this email directly or view it on GitHub
#87 (comment).
from genie.
I should have read this before opening issue #88
from genie.
Related Issues (20)
- What is the proper syntax for referencing a command line option in a configuration? HOT 2
- windows parameter limit of CreateProcess . Bug need fix. HOT 3
- ninja problem: bad $-escape (literal $ must be written as $$)
- Linkoptions not generating pkg-config results
- ninja backend doesn't handle windows `.rc` files
- New CPP 23 Standard HOT 2
- xcode12 action support? HOT 2
- Support for clang 11 -fpch-codegen and -fpch-debuginfo
- custombuildtask dependencies do not map to 'additional dependencies' in vs
- [feature] Zig build support HOT 2
- Support for PS5, GDK Xbox and Series X/S? HOT 1
- CUDA support
- incorrect resource compiler additional includes output to vcxproj
- How do you run tests? HOT 4
- [feature request] Add option to configure linker for `premake.gcc` HOT 2
- Building a C# project problem:[string "premake.vstudio.vc2022 = {}..."]:21: attempt to index a nil value (field 'cs2005')
- FreeBSD build broken HOT 2
- FreeBSD: use of $(ARCH) in GNU makefiles and src/hosts/scripts.c HOT 1
- Nintendo Switch: Can RuntimeTypeInfo be set to false?
- Convert from Premake4 to GENie HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genie.