/src/llvm-project/clang/lib/Driver/ToolChains/Solaris.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===--- Solaris.cpp - Solaris ToolChain Implementations --------*- C++ -*-===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | |
9 | | #include "Solaris.h" |
10 | | #include "CommonArgs.h" |
11 | | #include "Gnu.h" |
12 | | #include "clang/Basic/LangStandard.h" |
13 | | #include "clang/Config/config.h" |
14 | | #include "clang/Driver/Compilation.h" |
15 | | #include "clang/Driver/Driver.h" |
16 | | #include "clang/Driver/DriverDiagnostic.h" |
17 | | #include "clang/Driver/Options.h" |
18 | | #include "clang/Driver/SanitizerArgs.h" |
19 | | #include "clang/Driver/ToolChain.h" |
20 | | #include "llvm/ADT/StringSwitch.h" |
21 | | #include "llvm/Option/ArgList.h" |
22 | | #include "llvm/Support/FileSystem.h" |
23 | | #include "llvm/Support/Path.h" |
24 | | |
25 | | using namespace clang::driver; |
26 | | using namespace clang::driver::tools; |
27 | | using namespace clang::driver::toolchains; |
28 | | using namespace clang; |
29 | | using namespace llvm::opt; |
30 | | |
31 | | void solaris::Assembler::ConstructJob(Compilation &C, const JobAction &JA, |
32 | | const InputInfo &Output, |
33 | | const InputInfoList &Inputs, |
34 | | const ArgList &Args, |
35 | 0 | const char *LinkingOutput) const { |
36 | | // Just call the Gnu version, which enforces gas on Solaris. |
37 | 0 | gnutools::Assembler::ConstructJob(C, JA, Output, Inputs, Args, LinkingOutput); |
38 | 0 | } |
39 | | |
40 | 0 | bool solaris::isLinkerGnuLd(const ToolChain &TC, const ArgList &Args) { |
41 | | // Only used if targetting Solaris. |
42 | 0 | const Arg *A = Args.getLastArg(options::OPT_fuse_ld_EQ); |
43 | 0 | StringRef UseLinker = A ? A->getValue() : CLANG_DEFAULT_LINKER; |
44 | 0 | return UseLinker == "bfd" || UseLinker == "gld"; |
45 | 0 | } |
46 | | |
47 | 0 | static bool getPIE(const ArgList &Args, const ToolChain &TC) { |
48 | 0 | if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_static) || |
49 | 0 | Args.hasArg(options::OPT_r)) |
50 | 0 | return false; |
51 | | |
52 | 0 | return Args.hasFlag(options::OPT_pie, options::OPT_no_pie, |
53 | 0 | TC.isPIEDefault(Args)); |
54 | 0 | } |
55 | | |
56 | | // FIXME: Need to handle CLANG_DEFAULT_LINKER here? |
57 | 0 | std::string solaris::Linker::getLinkerPath(const ArgList &Args) const { |
58 | 0 | const ToolChain &ToolChain = getToolChain(); |
59 | 0 | if (const Arg *A = Args.getLastArg(options::OPT_fuse_ld_EQ)) { |
60 | 0 | StringRef UseLinker = A->getValue(); |
61 | 0 | if (!UseLinker.empty()) { |
62 | 0 | if (llvm::sys::path::is_absolute(UseLinker) && |
63 | 0 | llvm::sys::fs::can_execute(UseLinker)) |
64 | 0 | return std::string(UseLinker); |
65 | | |
66 | | // Accept 'bfd' and 'gld' as aliases for the GNU linker. |
67 | 0 | if (UseLinker == "bfd" || UseLinker == "gld") |
68 | | // FIXME: Could also use /usr/bin/gld here. |
69 | 0 | return "/usr/gnu/bin/ld"; |
70 | | |
71 | | // Accept 'ld' as alias for the default linker |
72 | 0 | if (UseLinker != "ld") |
73 | 0 | ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) |
74 | 0 | << A->getAsString(Args); |
75 | 0 | } |
76 | 0 | } |
77 | | |
78 | | // getDefaultLinker() always returns an absolute path. |
79 | 0 | return ToolChain.getDefaultLinker(); |
80 | 0 | } |
81 | | |
82 | | void solaris::Linker::ConstructJob(Compilation &C, const JobAction &JA, |
83 | | const InputInfo &Output, |
84 | | const InputInfoList &Inputs, |
85 | | const ArgList &Args, |
86 | 0 | const char *LinkingOutput) const { |
87 | 0 | const auto &ToolChain = static_cast<const Solaris &>(getToolChain()); |
88 | 0 | const Driver &D = ToolChain.getDriver(); |
89 | 0 | const llvm::Triple::ArchType Arch = ToolChain.getArch(); |
90 | 0 | const bool IsPIE = getPIE(Args, ToolChain); |
91 | 0 | const bool LinkerIsGnuLd = isLinkerGnuLd(ToolChain, Args); |
92 | 0 | ArgStringList CmdArgs; |
93 | | |
94 | | // Demangle C++ names in errors. GNU ld already defaults to --demangle. |
95 | 0 | if (!LinkerIsGnuLd) |
96 | 0 | CmdArgs.push_back("-C"); |
97 | |
|
98 | 0 | if (!Args.hasArg(options::OPT_nostdlib, options::OPT_shared, |
99 | 0 | options::OPT_r)) { |
100 | 0 | CmdArgs.push_back("-e"); |
101 | 0 | CmdArgs.push_back("_start"); |
102 | 0 | } |
103 | |
|
104 | 0 | if (IsPIE) { |
105 | 0 | if (LinkerIsGnuLd) { |
106 | 0 | CmdArgs.push_back("-pie"); |
107 | 0 | } else { |
108 | 0 | CmdArgs.push_back("-z"); |
109 | 0 | CmdArgs.push_back("type=pie"); |
110 | 0 | } |
111 | 0 | } |
112 | |
|
113 | 0 | if (Args.hasArg(options::OPT_static)) { |
114 | 0 | CmdArgs.push_back("-Bstatic"); |
115 | 0 | CmdArgs.push_back("-dn"); |
116 | 0 | } else { |
117 | 0 | if (!Args.hasArg(options::OPT_r) && Args.hasArg(options::OPT_shared)) |
118 | 0 | CmdArgs.push_back("-shared"); |
119 | | |
120 | | // libpthread has been folded into libc since Solaris 10, no need to do |
121 | | // anything for pthreads. Claim argument to avoid warning. |
122 | 0 | Args.ClaimAllArgs(options::OPT_pthread); |
123 | 0 | Args.ClaimAllArgs(options::OPT_pthreads); |
124 | 0 | } |
125 | |
|
126 | 0 | if (LinkerIsGnuLd) { |
127 | | // Set the correct linker emulation for 32- and 64-bit Solaris. |
128 | 0 | switch (Arch) { |
129 | 0 | case llvm::Triple::x86: |
130 | 0 | CmdArgs.push_back("-m"); |
131 | 0 | CmdArgs.push_back("elf_i386_sol2"); |
132 | 0 | break; |
133 | 0 | case llvm::Triple::x86_64: |
134 | 0 | CmdArgs.push_back("-m"); |
135 | 0 | CmdArgs.push_back("elf_x86_64_sol2"); |
136 | 0 | break; |
137 | 0 | case llvm::Triple::sparc: |
138 | 0 | CmdArgs.push_back("-m"); |
139 | 0 | CmdArgs.push_back("elf32_sparc_sol2"); |
140 | 0 | break; |
141 | 0 | case llvm::Triple::sparcv9: |
142 | 0 | CmdArgs.push_back("-m"); |
143 | 0 | CmdArgs.push_back("elf64_sparc_sol2"); |
144 | 0 | break; |
145 | 0 | default: |
146 | 0 | break; |
147 | 0 | } |
148 | | |
149 | 0 | if (Args.hasArg(options::OPT_rdynamic)) |
150 | 0 | CmdArgs.push_back("-export-dynamic"); |
151 | |
|
152 | 0 | CmdArgs.push_back("--eh-frame-hdr"); |
153 | 0 | } else { |
154 | | // -rdynamic is a no-op with Solaris ld. Claim argument to avoid warning. |
155 | 0 | Args.ClaimAllArgs(options::OPT_rdynamic); |
156 | 0 | } |
157 | | |
158 | 0 | assert((Output.isFilename() || Output.isNothing()) && "Invalid output."); |
159 | 0 | if (Output.isFilename()) { |
160 | 0 | CmdArgs.push_back("-o"); |
161 | 0 | CmdArgs.push_back(Output.getFilename()); |
162 | 0 | } |
163 | |
|
164 | 0 | if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, |
165 | 0 | options::OPT_r)) { |
166 | 0 | if (!Args.hasArg(options::OPT_shared)) |
167 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); |
168 | |
|
169 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); |
170 | |
|
171 | 0 | const Arg *Std = Args.getLastArg(options::OPT_std_EQ, options::OPT_ansi); |
172 | 0 | bool HaveAnsi = false; |
173 | 0 | const LangStandard *LangStd = nullptr; |
174 | 0 | if (Std) { |
175 | 0 | HaveAnsi = Std->getOption().matches(options::OPT_ansi); |
176 | 0 | if (!HaveAnsi) |
177 | 0 | LangStd = LangStandard::getLangStandardForName(Std->getValue()); |
178 | 0 | } |
179 | |
|
180 | 0 | const char *values_X = "values-Xa.o"; |
181 | | // Use values-Xc.o for -ansi, -std=c*, -std=iso9899:199409. |
182 | 0 | if (HaveAnsi || (LangStd && !LangStd->isGNUMode())) |
183 | 0 | values_X = "values-Xc.o"; |
184 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(values_X))); |
185 | |
|
186 | 0 | const char *values_xpg = "values-xpg6.o"; |
187 | | // Use values-xpg4.o for -std=c90, -std=gnu90, -std=iso9899:199409. |
188 | 0 | if (LangStd && LangStd->getLanguage() == Language::C && !LangStd->isC99()) |
189 | 0 | values_xpg = "values-xpg4.o"; |
190 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(values_xpg))); |
191 | |
|
192 | 0 | const char *crtbegin = nullptr; |
193 | 0 | if (Args.hasArg(options::OPT_shared) || IsPIE) |
194 | 0 | crtbegin = "crtbeginS.o"; |
195 | 0 | else |
196 | 0 | crtbegin = "crtbegin.o"; |
197 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); |
198 | | // Add crtfastmath.o if available and fast math is enabled. |
199 | 0 | ToolChain.addFastMathRuntimeIfAvailable(Args, CmdArgs); |
200 | 0 | } |
201 | |
|
202 | 0 | ToolChain.AddFilePathLibArgs(Args, CmdArgs); |
203 | |
|
204 | 0 | Args.addAllArgs(CmdArgs, |
205 | 0 | {options::OPT_L, options::OPT_T_Group, options::OPT_r}); |
206 | |
|
207 | 0 | bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); |
208 | 0 | AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); |
209 | |
|
210 | 0 | if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, |
211 | 0 | options::OPT_r)) { |
212 | | // Use the static OpenMP runtime with -static-openmp |
213 | 0 | bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) && |
214 | 0 | !Args.hasArg(options::OPT_static); |
215 | 0 | addOpenMPRuntime(CmdArgs, ToolChain, Args, StaticOpenMP); |
216 | |
|
217 | 0 | if (D.CCCIsCXX()) { |
218 | 0 | if (ToolChain.ShouldLinkCXXStdlib(Args)) |
219 | 0 | ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); |
220 | 0 | CmdArgs.push_back("-lm"); |
221 | 0 | } |
222 | | // Silence warnings when linking C code with a C++ '-stdlib' argument. |
223 | 0 | Args.ClaimAllArgs(options::OPT_stdlib_EQ); |
224 | | // Additional linker set-up and flags for Fortran. This is required in order |
225 | | // to generate executables. As Fortran runtime depends on the C runtime, |
226 | | // these dependencies need to be listed before the C runtime below. |
227 | 0 | if (D.IsFlangMode()) { |
228 | 0 | addFortranRuntimeLibraryPath(getToolChain(), Args, CmdArgs); |
229 | 0 | addFortranRuntimeLibs(getToolChain(), Args, CmdArgs); |
230 | 0 | CmdArgs.push_back("-lm"); |
231 | 0 | } |
232 | 0 | if (Args.hasArg(options::OPT_fstack_protector) || |
233 | 0 | Args.hasArg(options::OPT_fstack_protector_strong) || |
234 | 0 | Args.hasArg(options::OPT_fstack_protector_all)) { |
235 | | // Explicitly link ssp libraries, not folded into Solaris libc. |
236 | 0 | CmdArgs.push_back("-lssp_nonshared"); |
237 | 0 | CmdArgs.push_back("-lssp"); |
238 | 0 | } |
239 | | // LLVM support for atomics on 32-bit SPARC V8+ is incomplete, so |
240 | | // forcibly link with libatomic as a workaround. |
241 | 0 | if (Arch == llvm::Triple::sparc) { |
242 | 0 | addAsNeededOption(ToolChain, Args, CmdArgs, true); |
243 | 0 | CmdArgs.push_back("-latomic"); |
244 | 0 | addAsNeededOption(ToolChain, Args, CmdArgs, false); |
245 | 0 | } |
246 | 0 | addAsNeededOption(ToolChain, Args, CmdArgs, true); |
247 | 0 | CmdArgs.push_back("-lgcc_s"); |
248 | 0 | addAsNeededOption(ToolChain, Args, CmdArgs, false); |
249 | 0 | CmdArgs.push_back("-lc"); |
250 | 0 | if (!Args.hasArg(options::OPT_shared)) { |
251 | 0 | CmdArgs.push_back("-lgcc"); |
252 | 0 | } |
253 | 0 | const SanitizerArgs &SA = ToolChain.getSanitizerArgs(Args); |
254 | 0 | if (NeedsSanitizerDeps) { |
255 | 0 | linkSanitizerRuntimeDeps(ToolChain, Args, CmdArgs); |
256 | | |
257 | | // Work around Solaris/amd64 ld bug when calling __tls_get_addr directly. |
258 | | // However, ld -z relax=transtls is available since Solaris 11.2, but not |
259 | | // in Illumos. |
260 | 0 | if (Arch == llvm::Triple::x86_64 && |
261 | 0 | (SA.needsAsanRt() || SA.needsStatsRt() || |
262 | 0 | (SA.needsUbsanRt() && !SA.requiresMinimalRuntime())) && |
263 | 0 | !LinkerIsGnuLd) { |
264 | 0 | CmdArgs.push_back("-z"); |
265 | 0 | CmdArgs.push_back("relax=transtls"); |
266 | 0 | } |
267 | 0 | } |
268 | | // Avoid AsanInitInternal cycle, Issue #64126. |
269 | 0 | if (ToolChain.getTriple().isX86() && SA.needsSharedRt() && |
270 | 0 | SA.needsAsanRt()) { |
271 | 0 | CmdArgs.push_back("-z"); |
272 | 0 | CmdArgs.push_back("now"); |
273 | 0 | } |
274 | 0 | } |
275 | |
|
276 | 0 | if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles, |
277 | 0 | options::OPT_r)) { |
278 | 0 | const char *crtend = nullptr; |
279 | 0 | if (Args.hasArg(options::OPT_shared) || IsPIE) |
280 | 0 | crtend = "crtendS.o"; |
281 | 0 | else |
282 | 0 | crtend = "crtend.o"; |
283 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); |
284 | 0 | CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtn.o"))); |
285 | 0 | } |
286 | |
|
287 | 0 | ToolChain.addProfileRTLibs(Args, CmdArgs); |
288 | |
|
289 | 0 | const char *Exec = Args.MakeArgString(getLinkerPath(Args)); |
290 | 0 | C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(), |
291 | 0 | Exec, CmdArgs, Inputs, Output)); |
292 | 0 | } |
293 | | |
294 | 0 | static StringRef getSolarisLibSuffix(const llvm::Triple &Triple) { |
295 | 0 | switch (Triple.getArch()) { |
296 | 0 | case llvm::Triple::x86: |
297 | 0 | case llvm::Triple::sparc: |
298 | 0 | default: |
299 | 0 | break; |
300 | 0 | case llvm::Triple::x86_64: |
301 | 0 | return "/amd64"; |
302 | 0 | case llvm::Triple::sparcv9: |
303 | 0 | return "/sparcv9"; |
304 | 0 | } |
305 | 0 | return ""; |
306 | 0 | } |
307 | | |
308 | | /// Solaris - Solaris tool chain which can call as(1) and ld(1) directly. |
309 | | |
310 | | Solaris::Solaris(const Driver &D, const llvm::Triple &Triple, |
311 | | const ArgList &Args) |
312 | 0 | : Generic_ELF(D, Triple, Args) { |
313 | |
|
314 | 0 | GCCInstallation.init(Triple, Args); |
315 | |
|
316 | 0 | StringRef LibSuffix = getSolarisLibSuffix(Triple); |
317 | 0 | path_list &Paths = getFilePaths(); |
318 | 0 | if (GCCInstallation.isValid()) { |
319 | | // On Solaris gcc uses both an architecture-specific path with triple in it |
320 | | // as well as a more generic lib path (+arch suffix). |
321 | 0 | addPathIfExists(D, |
322 | 0 | GCCInstallation.getInstallPath() + |
323 | 0 | GCCInstallation.getMultilib().gccSuffix(), |
324 | 0 | Paths); |
325 | 0 | addPathIfExists(D, GCCInstallation.getParentLibPath() + LibSuffix, Paths); |
326 | 0 | } |
327 | | |
328 | | // If we are currently running Clang inside of the requested system root, |
329 | | // add its parent library path to those searched. |
330 | 0 | if (StringRef(D.Dir).starts_with(D.SysRoot)) |
331 | 0 | addPathIfExists(D, D.Dir + "/../lib", Paths); |
332 | |
|
333 | 0 | addPathIfExists(D, D.SysRoot + "/usr/lib" + LibSuffix, Paths); |
334 | 0 | } |
335 | | |
336 | 0 | SanitizerMask Solaris::getSupportedSanitizers() const { |
337 | 0 | const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; |
338 | 0 | SanitizerMask Res = ToolChain::getSupportedSanitizers(); |
339 | | // FIXME: Omit X86_64 until 64-bit support is figured out. |
340 | 0 | if (IsX86) { |
341 | 0 | Res |= SanitizerKind::Address; |
342 | 0 | Res |= SanitizerKind::PointerCompare; |
343 | 0 | Res |= SanitizerKind::PointerSubtract; |
344 | 0 | } |
345 | 0 | Res |= SanitizerKind::Vptr; |
346 | 0 | return Res; |
347 | 0 | } |
348 | | |
349 | 0 | const char *Solaris::getDefaultLinker() const { |
350 | | // FIXME: Only handle Solaris ld and GNU ld here. |
351 | 0 | return llvm::StringSwitch<const char *>(CLANG_DEFAULT_LINKER) |
352 | 0 | .Cases("bfd", "gld", "/usr/gnu/bin/ld") |
353 | 0 | .Default("/usr/bin/ld"); |
354 | 0 | } |
355 | | |
356 | 0 | Tool *Solaris::buildAssembler() const { |
357 | 0 | return new tools::solaris::Assembler(*this); |
358 | 0 | } |
359 | | |
360 | 0 | Tool *Solaris::buildLinker() const { return new tools::solaris::Linker(*this); } |
361 | | |
362 | | void Solaris::AddClangSystemIncludeArgs(const ArgList &DriverArgs, |
363 | 0 | ArgStringList &CC1Args) const { |
364 | 0 | const Driver &D = getDriver(); |
365 | |
|
366 | 0 | if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc)) |
367 | 0 | return; |
368 | | |
369 | 0 | if (!DriverArgs.hasArg(options::OPT_nostdlibinc)) |
370 | 0 | addSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/local/include"); |
371 | |
|
372 | 0 | if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) { |
373 | 0 | SmallString<128> P(D.ResourceDir); |
374 | 0 | llvm::sys::path::append(P, "include"); |
375 | 0 | addSystemInclude(DriverArgs, CC1Args, P); |
376 | 0 | } |
377 | |
|
378 | 0 | if (DriverArgs.hasArg(options::OPT_nostdlibinc)) |
379 | 0 | return; |
380 | | |
381 | | // Check for configure-time C include directories. |
382 | 0 | StringRef CIncludeDirs(C_INCLUDE_DIRS); |
383 | 0 | if (CIncludeDirs != "") { |
384 | 0 | SmallVector<StringRef, 5> dirs; |
385 | 0 | CIncludeDirs.split(dirs, ":"); |
386 | 0 | for (StringRef dir : dirs) { |
387 | 0 | StringRef Prefix = |
388 | 0 | llvm::sys::path::is_absolute(dir) ? "" : StringRef(D.SysRoot); |
389 | 0 | addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir); |
390 | 0 | } |
391 | 0 | return; |
392 | 0 | } |
393 | | |
394 | | // Add include directories specific to the selected multilib set and multilib. |
395 | 0 | if (GCCInstallation.isValid()) { |
396 | 0 | const MultilibSet::IncludeDirsFunc &Callback = |
397 | 0 | Multilibs.includeDirsCallback(); |
398 | 0 | if (Callback) { |
399 | 0 | for (const auto &Path : Callback(GCCInstallation.getMultilib())) |
400 | 0 | addExternCSystemIncludeIfExists( |
401 | 0 | DriverArgs, CC1Args, GCCInstallation.getInstallPath() + Path); |
402 | 0 | } |
403 | 0 | } |
404 | |
|
405 | 0 | addExternCSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/include"); |
406 | 0 | } |
407 | | |
408 | | void Solaris::addLibStdCxxIncludePaths( |
409 | | const llvm::opt::ArgList &DriverArgs, |
410 | 0 | llvm::opt::ArgStringList &CC1Args) const { |
411 | | // We need a detected GCC installation on Solaris (similar to Linux) |
412 | | // to provide libstdc++'s headers. |
413 | 0 | if (!GCCInstallation.isValid()) |
414 | 0 | return; |
415 | | |
416 | | // By default, look for the C++ headers in an include directory adjacent to |
417 | | // the lib directory of the GCC installation. |
418 | | // On Solaris this usually looks like /usr/gcc/X.Y/include/c++/X.Y.Z |
419 | 0 | StringRef LibDir = GCCInstallation.getParentLibPath(); |
420 | 0 | StringRef TripleStr = GCCInstallation.getTriple().str(); |
421 | 0 | const Multilib &Multilib = GCCInstallation.getMultilib(); |
422 | 0 | const GCCVersion &Version = GCCInstallation.getVersion(); |
423 | | |
424 | | // The primary search for libstdc++ supports multiarch variants. |
425 | 0 | addLibStdCXXIncludePaths(LibDir.str() + "/../include/c++/" + Version.Text, |
426 | 0 | TripleStr, Multilib.includeSuffix(), DriverArgs, |
427 | 0 | CC1Args); |
428 | 0 | } |