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

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 12:56:15 PDT 2020


yaxunl marked 2 inline comments as done.
yaxunl added inline comments.


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


================
Comment at: clang/test/Driver/hip-gz-options.hip:1
+// REQUIRES: clang-driver, x86-registered-target, amdgpu-registered-target
+
----------------
MaskRay wrote:
> 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
will do when committing


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

https://reviews.llvm.org/D87321



More information about the cfe-commits mailing list