Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 9e7fc28

Browse files
authored
Disable -fsycl-dead-args-optimization for separate compilation test (#595)
As we move to making -fsycl-dead-args-optimization the default, we need to disable for separate compilation testing, as we are not performing the additional sycl-post-link step here.
1 parent 927b311 commit 9e7fc28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SYCL/AOT/multiple-devices.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
//
2626
// Produce object file, spirv, device images to combine these differently
2727
// at link-time, thus testing various AOT-compiled images configurations
28-
// RUN: %clangxx -fsycl %S/Inputs/aot.cpp -c -o %t.o
28+
// Disable DAE when performing separate compilation here, as we are not
29+
// using sycl-post-link to fully enable.
30+
// RUN: %clangxx -fsycl -fno-sycl-dead-args-optimization %S/Inputs/aot.cpp -c -o %t.o
2931
// RUN: %clangxx -fsycl -fsycl-link-targets=spir64 %t.o -o %t.spv
3032
// AOT-compile device binary images
3133
// Neither of AOT tools can compile several files, hence, here is this

0 commit comments

Comments
 (0)