diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-06 13:10:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-06 17:25:53 +0900 |
| commit | 58ab97e3008f1033db3ea540eb41617dc4875591 (patch) | |
| tree | e50c0a507ecf149a6b2285aa3950288092bd3940 /mrbgems/mruby-bin-config | |
| parent | e19346fd8bad5b745e8923baf16c1c3173aee2aa (diff) | |
| download | mruby-58ab97e3008f1033db3ea540eb41617dc4875591.tar.gz mruby-58ab97e3008f1033db3ea540eb41617dc4875591.zip | |
mruby-config: add `--cc` and `--ld` options.
* `--cc` print compiler name
* `--ld` print linker name
Diffstat (limited to 'mrbgems/mruby-bin-config')
| -rw-r--r-- | mrbgems/mruby-bin-config/mruby-config | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-config/mruby-config b/mrbgems/mruby-bin-config/mruby-config index 8bbb4ecc6..3adda9e1a 100644 --- a/mrbgems/mruby-bin-config/mruby-config +++ b/mrbgems/mruby-bin-config/mruby-config @@ -4,7 +4,9 @@ print_help() { echo "Usage: mruby-config [switches]" echo " switches:" + echo " --cc print compiler name" echo " --cflags print flags passed to compiler" + echo " --ld print linker name" echo " --ldflags print flags passed to linker" echo " --ldflags-before-libs print flags passed to linker before linked libraries" echo " --libs print linked libraries" @@ -19,7 +21,9 @@ fi while [ $# -gt 0 ]; do case $1 in + --cc) echo MRUBY_CC;; --cflags) echo MRUBY_CFLAGS;; + --ld) echo MRUBY_LD;; --ldflags) echo MRUBY_LDFLAGS;; --ldflags-before-libs) echo MRUBY_LDFLAGS_BEFORE_LIBS;; --libs) echo MRUBY_LIBS;; |
