Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
4e5ec199
Commit
4e5ec199
authored
Apr 04, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2000 from kyab/add-help-for-mruby-config
add --help option to mruby-config
parents
2d616987
97ecf30f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mrbgems/mruby-bin-mruby-config/mruby-config
mrbgems/mruby-bin-mruby-config/mruby-config
+6
-0
mrbgems/mruby-bin-mruby-config/mruby-config.bat
mrbgems/mruby-bin-mruby-config/mruby-config.bat
+8
-0
No files found.
mrbgems/mruby-bin-mruby-config/mruby-config
View file @
4e5ec199
...
...
@@ -5,6 +5,12 @@ while [ $# -gt 0 ]; do
--cflags
)
echo
MRUBY_CFLAGS
;;
--ldflags
)
echo
MRUBY_LDFLAGS
;;
--libs
)
echo
MRUBY_LIBS
;;
--help
)
echo
"Usage: mruby-config [switches]"
echo
" switches:"
echo
" --cflags print flags passed to compiler"
echo
" --ldflags print flags passed to linker"
echo
" --libs print linked libraries"
exit
0
;;
esac
shift
done
mrbgems/mruby-bin-mruby-config/mruby-config.bat
View file @
4e5ec199
...
...
@@ -6,6 +6,7 @@ if "%0" equ "" goto :eof
if
"
%
0"
equ
"--cflags"
goto
cflags
if
"
%
0"
equ
"--ldflags"
goto
ldflags
if
"
%
0"
equ
"--libs"
goto
libs
if
"
%
0"
equ
"--help"
goto
showhelp
echo
Invalid
Option
goto
:eof
...
...
@@ -20,3 +21,10 @@ goto top
:ldflags
echo
MRUBY_LDFLAGS
goto
top
:showhelp
echo
Usage
:
mruby
-config
[
switches
]
echo
switches
:
echo
-
-cflags
print
flags
passed
to
compiler
echo
-
-ldflags
print
flags
passed
to
linker
echo
-
-libs
print
linked
libraries
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment