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

Support for Swift on Linux & Windows? #2021

Closed
ghost opened this issue Feb 1, 2022 · 2 comments
Closed

Support for Swift on Linux & Windows? #2021

ghost opened this issue Feb 1, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 1, 2022

Is your feature request related to a problem? Please describe.

xmake mentions that Swift is one of supported languages, however. After attempted use of it on Windows or Linux I found that it will not work on those two OS's as I receive errors trying to use it. Swift is a cross-platform language now (or at least is getting there.) for Linux and Windows (still heavily WIP, and a lot of issues facing with SPM can be solved with CMake).

I would love to see xmake add ability to use it and Swift outside of Apple ecosystem, as you can easily use the language outside it.

Describe the solution you'd like

As mentioned above. Add Linux & Windows support for Swift to xmake.

Describe alternatives you've considered

CMake is the only alternative solution for current issues with Swift on Windows, but I would sincerely prefer to use xmake over it.

Additional context

N/A

@waruqi
Copy link
Member

waruqi commented Feb 2, 2022

I supported it on linux, windows. But I only test it on linux.

$ xmake f -c -vD
$ xmake -rvD
[ 25%]: compiling.release src/main.swift
/mnt/swift-5.5.2-RELEASE-ubuntu20.04/usr/bin/swiftc -c -O -o build/.objs/test/linux/x86_64/release/src/main.swift.o src/main.swift
[ 50%]: linking.release test
/mnt/swift-5.5.2-RELEASE-ubuntu20.04/usr/bin/swiftc -o build/linux/x86_64/release/test build/.objs/test/linux/x86_64/release/src/main.swift.o -Xlinker -s
[100%]: build ok!

@waruqi waruqi added this to the v2.6.4 milestone Feb 2, 2022
@ghost
Copy link
Author

ghost commented Feb 2, 2022

I supported it on linux, windows. But I only test it on linux.

$ xmake f -c -vD
$ xmake -rvD
[ 25%]: compiling.release src/main.swift
/mnt/swift-5.5.2-RELEASE-ubuntu20.04/usr/bin/swiftc -c -O -o build/.objs/test/linux/x86_64/release/src/main.swift.o src/main.swift
[ 50%]: linking.release test
/mnt/swift-5.5.2-RELEASE-ubuntu20.04/usr/bin/swiftc -o build/linux/x86_64/release/test build/.objs/test/linux/x86_64/release/src/main.swift.o -Xlinker -s
[100%]: build ok!

Awesome! can't wait to try it out!

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

No branches or pull requests

1 participant