[PATCH] D87321: Fix -gz=zlib options for linker

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 12:19:23 PDT 2020


MaskRay added inline comments.


================
Comment at: clang/test/Driver/gz.c:1
+// RUN: %clang -### -target x86_64-unknown-linux-gnu -g -gz=none %s 2>&1 | \
+// RUN:    FileCheck -check-prefix=NONE %s
----------------
This can be merged into `compress.c`
You may delete some `-c` from compress.c to exercise the linker stage.


================
Comment at: clang/test/Driver/hip-gz-options.hip:1
+// REQUIRES: clang-driver
+// REQUIRES: x86-registered-target
----------------
REQUIRES values can be comma separated


================
Comment at: clang/test/Driver/hip-gz-options.hip:5
+
+// RUN: %clang -### --offload-arch=gfx906 %s -nogpulib -nogpuinc \
+// RUN:   -ggdb -gz=zlib 2>&1 | FileCheck %s
----------------
Is `-target` (or `--target=`)  needed?


================
Comment at: clang/test/Driver/hip-gz-options.hip:15
+// CHECK: {{".*ld.*" .* "--compress-debug-sections=zlib"}}
+
----------------
Delete trailing empty lines


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87321/new/

https://reviews.llvm.org/D87321



More information about the cfe-commits mailing list