• Home
  • Raw
  • Download

Lines Matching +full:arm +full:- +full:linux +full:- +full:gnueabi

1 //===- unittests/Driver/ToolChainTest.cpp --- ToolChain tests -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
37 Driver TheDriver("/bin/clang", "arm-linux-gnueabihf", Diags, in TEST()
43 "/usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o", in TEST()
44 "/usr/lib/gcc/arm-linux-gnueabi/4.6.1/crtend.o", in TEST()
45 "/usr/lib/gcc/arm-linux-gnueabihf/4.6.3/crtbegin.o", in TEST()
46 "/usr/lib/gcc/arm-linux-gnueabihf/4.6.3/crtend.o", in TEST()
47 "/usr/lib/arm-linux-gnueabi/crt1.o", in TEST()
48 "/usr/lib/arm-linux-gnueabi/crti.o", in TEST()
49 "/usr/lib/arm-linux-gnueabi/crtn.o", in TEST()
50 "/usr/lib/arm-linux-gnueabihf/crt1.o", in TEST()
51 "/usr/lib/arm-linux-gnueabihf/crti.o", in TEST()
52 "/usr/lib/arm-linux-gnueabihf/crtn.o", in TEST()
53 "/usr/include/arm-linux-gnueabi/.keep", in TEST()
54 "/usr/include/arm-linux-gnueabihf/.keep", in TEST()
55 "/lib/arm-linux-gnueabi/.keep", in TEST()
56 "/lib/arm-linux-gnueabihf/.keep"}; in TEST()
59 InMemoryFileSystem->addFile(Path, 0, in TEST()
63 {"-fsyntax-only", "--gcc-toolchain=", "--sysroot=", "foo.cpp"})); in TEST()
69 C->getDefaultToolChain().printVerboseInfo(OS); in TEST()
76 "/usr/lib/gcc/arm-linux-gnueabihf/4.6.3\n" in TEST()
77 "Selected GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.6.3\n" in TEST()
91 Driver TheDriver("/home/test/bin/clang", "arm-linux-gnueabi", Diags, in TEST()
95 "foo.cpp", "/home/test/lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o", in TEST()
96 "/home/test/include/arm-linux-gnueabi/.keep"}; in TEST()
99 InMemoryFileSystem->addFile(Path, 0, in TEST()
103 {"-fsyntax-only", "--gcc-toolchain=", "foo.cpp"})); in TEST()
109 C->getDefaultToolChain().printVerboseInfo(OS); in TEST()
115 "/home/test/bin/../lib/gcc/arm-linux-gnueabi/4.6.1\n" in TEST()
117 "/home/test/bin/../lib/gcc/arm-linux-gnueabi/4.6.1\n" in TEST()
132 Driver CCDriver("/home/test/bin/clang", "arm-linux-gnueabi", Diags, in TEST()
135 Driver CXXDriver("/home/test/bin/clang++", "arm-linux-gnueabi", Diags, in TEST()
138 Driver CLDriver("/home/test/bin/clang-cl", "arm-linux-gnueabi", Diags, in TEST()
147 { "/home/test/bin/clang-cl", "foo.cpp"})); in TEST()
161 Driver TheDriver("/bin/clang", "arm-linux-gnueabihf", Diags); in TEST()
163 {"-fsyntax-only", "-fan-unknown-option", "foo.cpp"})); in TEST()
165 EXPECT_TRUE(C->containsError()); in TEST()
181 ParsedClangName DriverOnly2("clang++", "--driver-mode=g++"); in TEST()
184 EXPECT_STREQ(DriverOnly2.DriverMode, "--driver-mode=g++"); in TEST()
187 ParsedClangName TargetAndMode("i386", "clang-g++", "--driver-mode=g++", true); in TEST()
189 EXPECT_TRUE(TargetAndMode.ModeSuffix == "clang-g++"); in TEST()
190 EXPECT_STREQ(TargetAndMode.DriverMode, "--driver-mode=g++"); in TEST()
209 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
215 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
218 Res = ToolChain::getTargetAndModeFromProgramName("clang++-release"); in TEST()
221 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
224 Res = ToolChain::getTargetAndModeFromProgramName("x86_64-clang++"); in TEST()
227 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
231 "x86_64-linux-gnu-clang-c++"); in TEST()
232 EXPECT_TRUE(Res.TargetPrefix == "x86_64-linux-gnu"); in TEST()
233 EXPECT_TRUE(Res.ModeSuffix == "clang-c++"); in TEST()
234 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
238 "x86_64-linux-gnu-clang-c++-tot"); in TEST()
239 EXPECT_TRUE(Res.TargetPrefix == "x86_64-linux-gnu"); in TEST()
240 EXPECT_TRUE(Res.ModeSuffix == "clang-c++"); in TEST()
241 EXPECT_STREQ(Res.DriverMode, "--driver-mode=g++"); in TEST()
250 Res = ToolChain::getTargetAndModeFromProgramName("x86_64-qqq"); in TEST()
256 Res = ToolChain::getTargetAndModeFromProgramName("qqq-clang-cl"); in TEST()
258 EXPECT_TRUE(Res.ModeSuffix == "clang-cl"); in TEST()
259 EXPECT_STREQ(Res.DriverMode, "--driver-mode=cl"); in TEST()
272 Driver CCDriver("/home/test/bin/clang", "arm-linux-gnueabi", Diags, in TEST()
277 const JobList &Jobs = CC->getJobs(); in TEST()
280 const auto &InFile = CmdCompile->getInputFilenames().front(); in TEST()
282 auto ObjFile = CmdCompile->getOutputFilenames().front(); in TEST()
286 const auto LinkInFile = CmdLink->getInputFilenames().front(); in TEST()
288 auto ExeFile = CmdLink->getOutputFilenames().front(); in TEST()
301 Driver CCDriver("/home/test/bin/clang", "arm-linux-gnueabi", Diags, in TEST()
307 CC->setPostCallback( in TEST()
309 const JobList &Jobs = CC->getJobs(); in TEST()
312 CC->ExecuteCommand(*CmdCompile, FailingCmd); in TEST()