Skip to content

Create Luau version of Luthier #171

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

Open
wants to merge 41 commits into
base: primary
Choose a base branch
from

Conversation

Nicell
Copy link
Collaborator

@Nicell Nicell commented Apr 22, 2025

Port Luthier to Luau. The only piece fully lacking is support for directories in std. This also highlights that we're lacking os.walk and os.chdir equivalents, so I had to work around that.

Closes #89

@Nicell Nicell marked this pull request as ready for review April 22, 2025 06:07
@Nicell Nicell changed the title Create Luau version of luthier Create Luau version of Luthier Apr 22, 2025
Copy link
Collaborator

@aatxe aatxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks pretty good, just a couple things.

Copy link
Collaborator

@aatxe aatxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the inclusion of BoringSSL, we have a hard requirement on VS 2022 or newer now.

@Nicell Nicell marked this pull request as draft April 23, 2025 08:04
Comment on lines +209 to +216
local libsPath = projectRelative("std", "libs")
local libs = fs.listdir(libsPath)

for _, lib in libs do
local aliasedPath = `@std/{lib.name}`
local libSrc = fs.readfiletostring(joinPath(libsPath, lib.name))
fs.write(cpp, `\n \{"{aliasedPath}", R"({libSrc})"},\n`)
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't support directories in std atm. No equivalent to os.walk makes this annoying, and it's unnecessary at the moment.

@Nicell Nicell marked this pull request as ready for review May 2, 2025 20:55
@Nicell Nicell requested a review from aatxe May 2, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Dogfooding: Rewrite Luthier in Lute.
2 participants