History

Support --version cmdline arg

for simplicity handles like -v (verbose), but enables the usual idiom of configure scripts to use '$CC --version' to find out the compiler variant and version.

Michael Matz committed 6 years ago

Commit 8de7c091 parent 29ba50d1 file · +1 −0Browse files

Unified · Split

libtcc.c+1−0
@@ -1543,6 +1543,7 @@ static const TCCOption tcc_options[] = { · 1542 unmodified lines
1543 { "?", TCC_OPTION_HELP, 0 },1543 { "?", TCC_OPTION_HELP, 0 },
1544 { "hh", TCC_OPTION_HELP2, 0 },1544 { "hh", TCC_OPTION_HELP2, 0 },
1545 { "v", TCC_OPTION_v, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },1545 { "v", TCC_OPTION_v, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
1546 { "-version", TCC_OPTION_v, 0 }, /* handle as verbose, also prints version*/
1546 { "I", TCC_OPTION_I, TCC_OPTION_HAS_ARG },1547 { "I", TCC_OPTION_I, TCC_OPTION_HAS_ARG },
1547 { "D", TCC_OPTION_D, TCC_OPTION_HAS_ARG },1548 { "D", TCC_OPTION_D, TCC_OPTION_HAS_ARG },
1548 { "U", TCC_OPTION_U, TCC_OPTION_HAS_ARG },1549 { "U", TCC_OPTION_U, TCC_OPTION_HAS_ARG },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t