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

Add Emscripten system and emcc toolset support. #2376

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

tritao
Copy link
Contributor

@tritao tritao commented Dec 12, 2024

What does this PR do?

Thanks for the contribution! Please provide a concise description of the problem this request solves.

How does this PR change Premake's behavior?

Are there any breaking changes? Will any existing behavior change?

Anything else we should know?

Add any other context about your changes here.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

src/tools/emcc.lua Outdated Show resolved Hide resolved
src/tools/emcc.lua Outdated Show resolved Hide resolved
@tritao tritao force-pushed the emscripten branch 2 times, most recently from 0b0d8e2 to 1896c8b Compare December 15, 2024 19:26
@tritao tritao marked this pull request as ready for review December 15, 2024 19:34
@tritao
Copy link
Contributor Author

tritao commented Dec 15, 2024

@Jarod42 Updated the PR with your feedback and simplified the overall code with the same approach as the cosmos toolchain by deep copying clang toolchain.

["aix"] = { "aix", "posix", "desktop" },
["android"] = { "android", "mobile" },
["bsd"] = { "bsd", "posix", "desktop" },
["emscripten"] = { "emscripten", "web" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why it's marking this as many changed lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's due to formatting to make the table look nicer.

Copy link
Contributor

Choose a reason for hiding this comment

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

/me dislikes vertical alignment in general :-)

  • That reformatting "issue" when adding/removing line
  • Important information is horizontal here

BTW, second&third columns are not aligned correctly.

src/base/oven.lua Outdated Show resolved Hide resolved
@tritao
Copy link
Contributor Author

tritao commented Dec 15, 2024

Updated.

@@ -23,6 +24,8 @@ If no system is specified, Premake will identify and target the current operatin
* windows
* xbox360

To note: `emscripten` at the moment is only supported for the `gmake` and `gmake2` actions.
Copy link
Member

Choose a reason for hiding this comment

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

For uniformity with the rest of the docs, use a separate "Availability" header and make any notes beneath that. See https://raw.githubusercontent.com/premake/premake-core/refs/heads/master/website/docs/debugformat.md

Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure that others values are not cross-generator neither.

Copy link
Member

Choose a reason for hiding this comment

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

We should probably clean them up at some point, then.

@nickclark2016 nickclark2016 merged commit bdc4073 into premake:master Dec 16, 2024
39 checks passed
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.

4 participants