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

have the -xcode flag option for mac? #1651

Open
JonnycatMeow opened this issue Mar 23, 2023 · 9 comments
Open

have the -xcode flag option for mac? #1651

JonnycatMeow opened this issue Mar 23, 2023 · 9 comments

Comments

@JonnycatMeow
Copy link

i was thinking that if the ios has the -xcode flag how come mac don't have one?

@joshtynjala
Copy link
Member

As I understand it, an Xcode project is basically always required to compile an iOS app, even if that project isn't made available as a build artifact. On the other hand, to compile for macOS, I think that you can compile everything by executing directly the compiler, linker, and any other command line tools that are required, so no Xcode project is required.

With that in mind, the -xcode option was very easy to implement with iOS because the project would already exist from the start. With macOS, extra work would need to go into generating a project file that isn't normally used. It's probably not impossible, but I doubt it would be worth the effort, except by someone who has a very specific reason to need it.

@JonnycatMeow
Copy link
Author

ok i understand where your coming from and it is kinda useless making a whole xcode project. but there is the thing i have a intel mac and i want to make a arm64 build but i don't have a mac silicon arm64 computer but i have xcode so i can make the arm64 that why i was thinking of implementing that -xcode flag.

@JonnycatMeow
Copy link
Author

JonnycatMeow commented Mar 23, 2023

and see i used this version of lime #1642 from someone else's request and i tried to build it even though i have xcode and it did not work because i didn't have a apple silicon

@JonnycatMeow
Copy link
Author

thats why i wanted to implement -xcode on macOS. yes it will be diffrent and it will be hard but at the same time i can choose which arch i can use on xcode

@joshtynjala
Copy link
Member

I wonder if you can add -DHXCPP_ARM64 to your build command.

@JonnycatMeow
Copy link
Author

ima try

@JonnycatMeow
Copy link
Author

and if it does not want to build it for arm64 for macos then can you consider my idea for the -xcode flag for mac?

@JonnycatMeow
Copy link
Author

I wonder if you can add -DHXCPP_ARM64 to your build command.

i tried that but it doesn't work

@JonnycatMeow
Copy link
Author

its because i have a x86_64 mac

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