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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mrbgems/mruby-bin-utils #6057

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dearblue
Copy link
Contributor

If this gem isn't accepted by the mruby project, I will release it in my personal repository.


Current problem:

  • The switches that can be given to bin/mruby-cc depend on each compiler.
  • When compiling only with bin/mruby-cc -c, I get a "'linker' input unused" warning; I checked with clang, but gcc does not.

馃樃 Perhaps some disgruntled person will rewrite it in C.

end
```

Then compile and link your code in the generated command line program.
Copy link
Member

Choose a reason for hiding this comment

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

I think this line needs to be updated. You need to describe clearly what we get from these command-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.

Modified.

Then compile and link your code in the generated command line program.

```console
$ bin/mruby-cc yourcode.c
Copy link
Member

Choose a reason for hiding this comment

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

Some may misunderstand mruby-cc etc. only take one argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified.

@matz
Copy link
Member

matz commented Sep 20, 2023

According to our current naming convention, we can expect the executable binary utils or mruby-utils from mruby-bin-utils.

In addition, maybe we can have mruby-build -c foo.c to compile single file, mruby-build -l *.o to link object files, and mruby-build foo.c foo.m to compile&link multiple files, etc. (mruby-build is just a name candidate).

The document was converted from Japanese by https://www.deepl.com/.
@dearblue
Copy link
Contributor Author

Thank you for the review.

I can't think of anything else appropriate for the name. That said, it wouldn't be a good idea to separate them individually either.

As for mruby-build, I will explore the feasibility a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants