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
14571457 tcc_add_btstub(s1);
14581458 }
14591459 #endif
1460+ if ( strlen ( TCC_LIBTCC1 ) > 0 )
14601461 tcc_add_support(s1, TCC_LIBTCC1);
14611462 #ifndef TCC_TARGET_MACHO
14621463 /* 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
19231923 "msvcrt", "kernel32", "", "user32", "gdi32", NULL
19241924 };
19251925 const char **pp, *p;
1926+ if ( strlen ( TCC_LIBTCC1 ) > 0 )
19261927 tcc_add_support(s1, TCC_LIBTCC1);
19271928 for (pp = libs; 0 != (p = *pp); ++pp) {
19281929 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