File tree 6 files changed +11
-11
lines changed
lldb/packages/Python/lldbsuite/test/make
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 60
60
61
61
// RUN: %clang %s -### -fuse-ld=ld \
62
62
// RUN: -target arm-linux-androideabi \
63
- // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \
63
+ // RUN: -- gcc-toolchain= %S/Inputs/basic_android_tree 2>&1 \
64
64
// RUN: | FileCheck %s --check-prefix=CHECK-ANDROID-ARM-LD-TC
65
65
// CHECK-ANDROID-ARM-LD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld
66
66
67
67
// RUN: %clang %s -### -fuse-ld=bfd \
68
68
// RUN: -target arm-linux-androideabi \
69
- // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \
69
+ // RUN: -- gcc-toolchain= %S/Inputs/basic_android_tree 2>&1 \
70
70
// RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-BFD-TC
71
71
// CHECK-ANDROID-ARM-BFD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld.bfd
72
72
73
73
// RUN: %clang %s -### -fuse-ld=gold \
74
74
// RUN: -target arm-linux-androideabi \
75
- // RUN: -gcc-toolchain %S/Inputs/basic_android_tree 2>&1 \
75
+ // RUN: -- gcc-toolchain= %S/Inputs/basic_android_tree 2>&1 \
76
76
// RUN: | FileCheck %s -check-prefix=CHECK-ANDROID-ARM-GOLD-TC
77
77
// CHECK-ANDROID-ARM-GOLD-TC: Inputs/basic_android_tree/lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin{{/|\\+}}ld.gold
78
78
Original file line number Diff line number Diff line change 8
8
//
9
9
// Additionally check that the legacy spelling of the flag works.
10
10
// RUN: %clangxx %s -### --target=x86_64-linux-gnu --sysroot= \
11
- // RUN: -gcc-toolchain %S/Inputs/ubuntu_14.04_multiarch_tree/usr -stdlib=libstdc++ --rtlib=libgcc 2>&1 | \
11
+ // RUN: -- gcc-toolchain= %S/Inputs/ubuntu_14.04_multiarch_tree/usr -stdlib=libstdc++ --rtlib=libgcc 2>&1 | \
12
12
// RUN: FileCheck %s
13
13
//
14
14
// Test for header search toolchain detection.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(LLVM_LINK_COMPONENTS Support)
10
10
set (GOOGLE_BENCHMARK_TARGET_FLAGS ${BENCHMARK_DIALECT_FLAG} )
11
11
if (LIBCXX_BENCHMARK_GCC_TOOLCHAIN)
12
12
set (GOOGLE_BENCHMARK_TARGET_FLAGS
13
- -gcc-toolchain ${LIBCXX_BENCHMARK_GCC_TOOLCHAIN} )
13
+ -- gcc-toolchain= ${LIBCXX_BENCHMARK_GCC_TOOLCHAIN} )
14
14
endif ()
15
15
string (REPLACE ";" " " GOOGLE_BENCHMARK_TARGET_FLAGS "${GOOGLE_BENCHMARK_TARGET_FLAGS} " )
16
16
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ ExternalProject_Add(google-benchmark-libcxx
47
47
set (BENCHMARK_NATIVE_TARGET_FLAGS)
48
48
if (LIBCXX_BENCHMARK_NATIVE_GCC_TOOLCHAIN)
49
49
set (BENCHMARK_NATIVE_TARGET_FLAGS
50
- -gcc-toolchain ${LIBCXX_BENCHMARK_NATIVE_GCC_TOOLCHAIN} )
50
+ -- gcc-toolchain= ${LIBCXX_BENCHMARK_NATIVE_GCC_TOOLCHAIN} )
51
51
endif ()
52
52
split_list(BENCHMARK_NATIVE_TARGET_FLAGS)
53
53
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ OBJCOPY ?= $(GCC_TOOLCHAIN)/bin/$(TOOL_PREFIX)-objcopy
66
66
ARCHIVER ?= $(GCC_TOOLCHAIN)/bin/$(TOOL_PREFIX)-ar
67
67
68
68
ifeq "$(findstring clang,$(CC))" "clang"
69
- ARCH_CFLAGS += -target $(TRIPLE) -gcc-toolchain $(GCC_TOOLCHAIN)
70
- ARCH_LDFLAGS += -target $(TRIPLE) -gcc-toolchain $(GCC_TOOLCHAIN)
69
+ ARCH_CFLAGS += -target $(TRIPLE) -- gcc-toolchain= $(GCC_TOOLCHAIN)
70
+ ARCH_LDFLAGS += -target $(TRIPLE) -- gcc-toolchain= $(GCC_TOOLCHAIN)
71
71
endif
72
72
73
73
ARCH_CFLAGS += --sysroot=$(NDK_ROOT)/sysroot \
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ The cmake try compile stage fails
137
137
At an early stage cmake will attempt to compile and link a simple C program to
138
138
test if the toolchain is working.
139
139
140
- This stage can often fail at link time if the ``--sysroot `` and
141
- ``--gcc-toolchain `` options are not passed to the compiler. Check the
140
+ This stage can often fail at link time if the ``--sysroot= `` and
141
+ ``--gcc-toolchain= `` options are not passed to the compiler. Check the
142
142
``CMAKE_C_FLAGS `` and ``CMAKE_C_COMPILER_TARGET `` flags.
143
143
144
144
It can be useful to build a simple example outside of cmake with your toolchain
@@ -148,7 +148,7 @@ Clang uses the host header files
148
148
--------------------------------
149
149
On debian based systems it is possible to install multiarch support for
150
150
arm-linux-gnueabi and arm-linux-gnueabihf. In many cases clang can successfully
151
- use this multiarch support when - gcc-toolchain and --sysroot are not supplied.
151
+ use this multiarch support when `` -- gcc-toolchain= `` and `` --sysroot= `` are not supplied.
152
152
Unfortunately clang adds ``/usr/local/include `` before
153
153
``/usr/include/arm-linux-gnueabihf `` leading to errors when compiling the hosts
154
154
header files.
You can’t perform that action at this time.
0 commit comments