History

check strlen(TCC_LIBTCC1) before tcc_add_support(s1, TCC_LIBTCC1)

wanjochan committed 6 years ago

Commit bea7dcd1 parent aed5cd02 files · +2 −0Browse files

Unified · Split

2 files
  1. tccelf.c +1 −0
  2. tccpe.c +1 −0
tccelf.c+1−0
@@ -1457,6 +1457,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) · 1456 unmodified lines
1457 tcc_add_btstub(s1);1457 tcc_add_btstub(s1);
1458 }1458 }
1459#endif1459#endif
1460 if ( strlen ( TCC_LIBTCC1 ) > 0 )
1460 tcc_add_support(s1, TCC_LIBTCC1);1461 tcc_add_support(s1, TCC_LIBTCC1);
1461#ifndef TCC_TARGET_MACHO1462#ifndef TCC_TARGET_MACHO
1462 /* add crt end if not memory output */1463 /* add crt end if not memory output */
tccpe.c+1−0
@@ -1923,6 +1923,7 @@ static void pe_add_runtime(TCCState *s1, struct pe_info *pe) · 1922 unmodified lines
1923 "msvcrt", "kernel32", "", "user32", "gdi32", NULL1923 "msvcrt", "kernel32", "", "user32", "gdi32", NULL
1924 };1924 };
1925 const char **pp, *p;1925 const char **pp, *p;
1926 if ( strlen ( TCC_LIBTCC1 ) > 0 )
1926 tcc_add_support(s1, TCC_LIBTCC1);1927 tcc_add_support(s1, TCC_LIBTCC1);
1927 for (pp = libs; 0 != (p = *pp); ++pp) {1928 for (pp = libs; 0 != (p = *pp); ++pp) {
1928 if (*p)1929 if (*p)

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