History

Make tcc accept `-l lib` as well as `-llib`.

The POSIX spec for `c99` specifically favors the space-containing version (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html) and the `-l lib` syntax is also supported by gcc and clang.

Petr Skocik committed 8 years ago

Commit 1e2e5671 parent 314843f1 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -1502,7 +1502,7 @@ static const TCCOption tcc_options[] = { · 1501 unmodified lines
15021502 { "P", TCC_OPTION_P, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
15031503 { "L", TCC_OPTION_L, TCC_OPTION_HAS_ARG },
15041504 { "B", TCC_OPTION_B, TCC_OPTION_HAS_ARG },
1505− { "l", TCC_OPTION_l, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
1505+ { "l", TCC_OPTION_l, TCC_OPTION_HAS_ARG },
15061506 { "bench", TCC_OPTION_bench, 0 },
15071507 #ifdef CONFIG_TCC_BACKTRACE
15081508 { "bt", TCC_OPTION_bt, 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