Skip to content

Commit 43f2d4b

Browse files
authored
[Driver][SYCL][FPGA] Enable -reuse-exe support for Windows (#2698)
-reuse-exe was not marked as a CoreOption, causing it not to be accepted for clang-cl compilations.
1 parent a50a566 commit 43f2d4b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3597,7 +3597,7 @@ defm underscoring : BooleanFFlag<"underscoring">, Group<gfortran_Group>;
35973597
defm whole_file : BooleanFFlag<"whole-file">, Group<gfortran_Group>;
35983598

35993599
// C++ SYCL options
3600-
def reuse_exe_EQ : Joined<["-"], "reuse-exe=">,
3600+
def reuse_exe_EQ : Joined<["-"], "reuse-exe=">, Flags<[CoreOption]>,
36013601
HelpText<"Speed up FPGA aoc compile if the device code in <exe> is unchanged.">,
36023602
MetaVarName<"<exe>">;
36033603
def fsycl : Flag<["-"], "fsycl">, Group<sycl_Group>, Flags<[CC1Option, CoreOption]>,

clang/test/Driver/sycl-offload-intelfpga.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@
224224
// RUN: touch %t.cpp
225225
// RUN: %clangxx -### -reuse-exe=testing -target x86_64-unknown-linux-gnu -fsycl -fintelfpga %t.cpp 2>&1 \
226226
// RUN: | FileCheck -check-prefixes=CHK-FPGA-REUSE-EXE %s
227+
// RUN: %clang_cl -### -reuse-exe=testing -fsycl -fintelfpga %t.cpp 2>&1 \
228+
// RUN: | FileCheck -check-prefixes=CHK-FPGA-REUSE-EXE %s
227229
// CHK-FPGA-REUSE-EXE: aoc{{.*}} "-o" {{.*}} "-sycl" {{.*}} "-reuse-exe=testing"
228230

229231
/// -fintelfpga dependency file generation test

0 commit comments

Comments
 (0)