Skip to content

Swift builder initial approach#53

Open
theromis wants to merge 1 commit intoSCons:masterfrom
theromis:master
Open

Swift builder initial approach#53
theromis wants to merge 1 commit intoSCons:masterfrom
theromis:master

Conversation

@theromis
Copy link
Copy Markdown

@theromis theromis commented Oct 30, 2024

Finally have something working

$ cat hello.swift
// Swift "Hello, World!" Program

print("Hello, World!")
$ cat SConstruct
env = Environment(tools=['default','swift'])
env.Swift('hello')
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/usr/bin/swiftc -c hello.swift
scons: done building targets.

@mwichmann
Copy link
Copy Markdown
Collaborator

I'd say this looks quite promising!

Is a scanner needed to determine implicit dependencies? I know Swift doesn't use header files, but my knowledge doesn't extend further.

@theromis
Copy link
Copy Markdown
Author

Have to try serious build in godot with SwiftUI, cuz my current test was just Hello world build, but Swift is very important for all Apple development nova days.

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

Successfully merging this pull request may close these issues.

2 participants