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

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 12:51:48 PDT 2020


MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/test/Driver/hip-gz-options.hip:14
+// CHECK-DAG: {{".*clang.*" .* "--compress-debug-sections=zlib"}}
+// CHECK: {{"--compress-debug-sections=zlib"}}
----------------
Since this is no longer a regex you can remove the surround `{{` `}}`


================
Comment at: clang/test/Driver/hip-gz-options.hip:1
+// REQUIRES: clang-driver, x86-registered-target, amdgpu-registered-target
+
----------------
yaxunl wrote:
> MaskRay wrote:
> > clang-driver is for some legacy cygwin stuff. It should not be needed.
> > 
> > Does --offload-arch=gfx906 have special requirement that the backend is needed? For most other driver tests x86-registered-target is not needed to test `%clang -target x86_64`
> This may be unnecessary. I will remove it.
> 
> On the other hand, I think it requires zlib, so I will add zlib.
> 
> Also I separated the test for target amdgcn from compress.c since it requires amdgpu-registered-target.
LG. clang-driver can still be removed


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

https://reviews.llvm.org/D87321



More information about the cfe-commits mailing list