This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG19190cc651ef: [Driver] Support for compressed debug info on Fuchsia (authored by phosek). Herald added a subscriber: MaskRay. Herald added a project: All.
Changed prior to commit: https://reviews.llvm.org/D114115?vs=388005&id=425424#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114115/new/ https://reviews.llvm.org/D114115 Files: clang/lib/Driver/ToolChains/Fuchsia.cpp clang/test/Driver/fuchsia.c Index: clang/test/Driver/fuchsia.c =================================================================== --- clang/test/Driver/fuchsia.c +++ clang/test/Driver/fuchsia.c @@ -253,6 +253,13 @@ // CHECK-THINLTO: "-plugin-opt=thinlto" // 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{{.*}}" "--compress-debug-sections=zlib" +// CHECK-GZ: {{.*}}ld.lld{{.*}}" "--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 Index: clang/lib/Driver/ToolChains/Fuchsia.cpp =================================================================== --- clang/lib/Driver/ToolChains/Fuchsia.cpp +++ clang/lib/Driver/ToolChains/Fuchsia.cpp @@ -127,6 +127,7 @@ D.getLTOMode() == LTOK_Thin); } + addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs); AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
Index: clang/test/Driver/fuchsia.c =================================================================== --- clang/test/Driver/fuchsia.c +++ clang/test/Driver/fuchsia.c @@ -253,6 +253,13 @@ // CHECK-THINLTO: "-plugin-opt=thinlto" // 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{{.*}}" "--compress-debug-sections=zlib" +// CHECK-GZ: {{.*}}ld.lld{{.*}}" "--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 Index: clang/lib/Driver/ToolChains/Fuchsia.cpp =================================================================== --- clang/lib/Driver/ToolChains/Fuchsia.cpp +++ clang/lib/Driver/ToolChains/Fuchsia.cpp @@ -127,6 +127,7 @@ D.getLTOMode() == LTOK_Thin); } + addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs); AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits