Revert "[Driver] Support for compressed debug info on Fuchsia"
authorPetr Hosek <phosek@google.com>
Wed, 27 Apr 2022 18:41:41 +0000 (11:41 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 27 Apr 2022 18:41:41 +0000 (11:41 -0700)
This reverts commit 2d0c897212d0551966b26eae986209ea31c4f032 which
is still breaking on the sanitizer bots.

clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.c

index 6fe6f7f..9e0b259 100644 (file)
@@ -127,7 +127,6 @@ void fuchsia::Linker::ConstructJob(Compilation &C, const JobAction &JA,
                   D.getLTOMode() == LTOK_Thin);
   }
 
-  addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs);
   AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
 
   if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
index 07bb12b..888f6b1 100644 (file)
 // CHECK-THINLTO: "-plugin-opt=jobs=8"
 
 // RUN: %clang %s -### --target=x86_64-unknown-fuchsia \
-// RUN:     --sysroot=%S/platform \
-// RUN:     -Og -gz 2>&1 \
-// RUN:     | FileCheck %s -check-prefix=CHECK-GZ
-// CHECK-GZ: "{{[^"]*}}clang{{[^"]*}}"
-// CHECK-GZ: "--compress-debug-sections=zlib"
-// CHECK-GZ: "{{[^"]*}}ld.lld{{[^"]*}}"
-// CHECK-GZ: "--compress-debug-sections=zlib"
-
-// RUN: %clang %s -### --target=x86_64-unknown-fuchsia \
 // RUN:     -gsplit-dwarf -g -c %s 2>&1 \
 // RUN:     | FileCheck %s -check-prefix=CHECK-SPLIT-DWARF
 // CHECK-SPLIT-DWARF: "-split-dwarf-output" "fuchsia.dwo"