Changeset View
Changeset View
Standalone View
Standalone View
contrib/gcc/gcc.c
Show First 20 Lines • Show All 2,690 Lines • ▼ Show 20 Lines | if (! strcmp (name, "as") && access (DEFAULT_ASSEMBLER, mode) == 0) | ||||
return xstrdup (DEFAULT_ASSEMBLER); | return xstrdup (DEFAULT_ASSEMBLER); | ||||
#endif | #endif | ||||
#ifdef DEFAULT_LINKER | #ifdef DEFAULT_LINKER | ||||
if (! strcmp(name, "ld") && access (DEFAULT_LINKER, mode) == 0) | if (! strcmp(name, "ld") && access (DEFAULT_LINKER, mode) == 0) | ||||
return xstrdup (DEFAULT_LINKER); | return xstrdup (DEFAULT_LINKER); | ||||
#endif | #endif | ||||
#ifdef FREEBSD_NATIVE | |||||
bdrewery: Looks like this code was added in rS231336 for `-print-file-name=include`. Is it directly… | |||||
jhbAuthorUnsubmitted Done Inline ActionsHmm, I can try removing it and/or testing --print-file-name=include. jhb: Hmm, I can try removing it and/or testing --print-file-name=include. | |||||
jhbAuthorUnsubmitted Not Done Inline ActionsI finally did a test tinderbox yesterday with this hunk removed and it still builds fine, so I'm going to drop it. Without this change '--print-file-name=include' outputs 'include'. With this change left in it prints out '/usr/include' (always, doesn't honor sys root, but it's also not clear to me what might possibly use it) jhb: I finally did a test tinderbox yesterday with this hunk removed and it still builds fine, so… | |||||
if (! strcmp(name, "include")) | |||||
{ | |||||
#ifdef CROSS_INCLUDE_DIR | |||||
return xstrdup(CROSS_INCLUDE_DIR); | |||||
#else | |||||
return xstrdup(STANDARD_INCLUDE_DIR); | |||||
#endif | |||||
} | |||||
#endif | |||||
/* Determine the filename to execute (special case for absolute paths). */ | /* Determine the filename to execute (special case for absolute paths). */ | ||||
if (IS_ABSOLUTE_PATH (name)) | if (IS_ABSOLUTE_PATH (name)) | ||||
{ | { | ||||
if (access (name, mode) == 0) | if (access (name, mode) == 0) | ||||
return xstrdup (name); | return xstrdup (name); | ||||
return NULL; | return NULL; | ||||
▲ Show 20 Lines • Show All 5,233 Lines • Show Last 20 Lines |
Looks like this code was added in rS231336 for -print-file-name=include. Is it directly relevant for --sysroot?