Skip to content

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.

2 participants