Lines Matching refs:sysroot
130 add_standard_paths (const char *sysroot, const char *iprefix,
148 that iprefix and sysroot are mutually exclusive, for
150 if (sysroot && p->add_sysroot)
181 /* Should this directory start with the sysroot? */
182 if (sysroot && p->add_sysroot)
184 char *sysroot_no_trailing_dir_separator = xstrdup (sysroot);
185 size_t sysroot_len = strlen (sysroot);
187 if (sysroot_len > 0 && sysroot[sysroot_len - 1] == DIR_SEPARATOR)
323 /* Add SYSROOT to any user-supplied paths in CHAIN starting with
324 "=" or "$SYSROOT". */
327 add_sysroot_to_chain (const char *sysroot, int chain)
336 p->name = concat (sysroot, p->name + 1, NULL);
337 if (startswith (p->name, "$SYSROOT"))
338 p->name = concat (sysroot, p->name + strlen ("$SYSROOT"), NULL);
354 merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
356 /* Add the sysroot to user-supplied paths starting with "=". */
357 if (sysroot)
359 add_sysroot_to_chain (sysroot, INC_QUOTE);
360 add_sysroot_to_chain (sysroot, INC_BRACKET);
361 add_sysroot_to_chain (sysroot, INC_SYSTEM);
362 add_sysroot_to_chain (sysroot, INC_AFTER);
478 register_include_chains (cpp_reader *pfile, const char *sysroot,
498 target_c_incpath.extra_pre_includes (sysroot, iprefix, stdinc);
502 add_standard_paths (sysroot, iprefix, imultilib, cxx_stdinc);
504 target_c_incpath.extra_includes (sysroot, iprefix, stdinc);
506 merge_include_chains (sysroot, pfile, verbose);
521 static void hook_void_charptr_charptr_int (const char *sysroot ATTRIBUTE_UNUSED,