-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: primary
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
Co-authored-by: ariel <[email protected]>
There was a problem hiding this 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.
Co-authored-by: ariel <[email protected]>
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 |
There was a problem hiding this comment.
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.
Port Luthier to Luau. The only piece fully lacking is support for directories in
std
. This also highlights that we're lackingos.walk
andos.chdir
equivalents, so I had to work around that.Closes #89