Skip to content

Commit 6fc502a

Browse files
Do not submit
1 parent 1b35040 commit 6fc502a

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

llvm/utils/gn/build/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config("compiler_defaults") {
6363
asmflags = target_flags
6464
cflags = target_flags
6565
cflags_cc = []
66-
ldflags = target_flags + target_ldflags
66+
ldflags = target_flags + target_ldflags + ["-Wl,--gdb-index"]
6767

6868
# Mostly for compiler-rt, see compiler-rt/cmake/config-ix.cmake
6969
if (current_os == "ios") {

llvm/utils/gn/build/toolchain/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ template("unix_toolchain") {
175175
unix_toolchain("unix") {
176176
if (current_os != "ios" && current_os != "mac") {
177177
if (clang_base_path != "") {
178-
ar = rebase_path(clang_base_path, root_build_dir) + "/bin/llvm-ar"
178+
ar = rebase_path(clang_base_path, root_build_dir) + "/bin/ar"
179179
} else {
180180
ar = "ar"
181181
}

llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ write_lit_config("lit_site_cfg") {
3535
"CURRENT_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
3636
"CLANG_PLUGIN_SUPPORT=0",
3737
"LLVM_HOST_TRIPLE=$llvm_current_triple",
38-
"LLVM_INSTALL_TOOLCHAIN_ONLY=0",
3938
"LLVM_LIT_TOOLS_DIR=", # Intentionally empty, matches cmake build.
4039
"LLVM_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
4140
"Python3_EXECUTABLE=$python_path",

llvm/utils/gn/secondary/llvm/lib/MCA/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ static_library("MCA") {
55
"//llvm/lib/MC",
66
"//llvm/lib/Support",
77
]
8+
cflags_cc = ["-ggdb3", "-ggnu-pubnames", "-gdwarf-4"]
89
include_dirs = [ "../include" ]
910
sources = [
1011
"CodeEmitter.cpp",

0 commit comments

Comments
 (0)