Skip to content

Commit d49ba79

Browse files
committed
add comments to explain why device sanitizer library is only used on Linux
Signed-off-by: jinge90 <[email protected]>
1 parent deffa0a commit d49ba79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
727727
options::OPT_fno_sycl_instrument_device_code, true))
728728
addLibraries(SYCLDeviceAnnotationLibs);
729729

730+
// Currently, device sanitizer support is required by some developers on
731+
// Linux platform only, so compiler only provides device sanitizer libraries
732+
// on Linux platform.
730733
#if !defined(_WIN32)
731734
addSYCLDeviceSanitizerLibs(C, IsSpirvAOT, LibSuffix, LibraryList);
732735
#endif

0 commit comments

Comments
 (0)