Skip to content

Commit 8961312

Browse files
authored
[SYCL] Fix postcommit failure on macOS (#15886)
Silences unused variable warning introduced with #15701. Signed-off-by: Julian Oppermann <[email protected]>
1 parent 7c509e9 commit 8961312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ static char X; // Dummy symbol, used as an anchor for `dlinfo` below.
2121
#endif
2222

2323
static constexpr auto InvalidDPCPPRoot = "<invalid>";
24-
static constexpr auto JITLibraryPathSuffix = "/lib/libsycl-jit.so";
2524

2625
static const std::string &getDPCPPRoot() {
2726
thread_local std::string DPCPPRoot;
@@ -32,6 +31,7 @@ static const std::string &getDPCPPRoot() {
3231
DPCPPRoot = InvalidDPCPPRoot;
3332

3433
#ifdef _GNU_SOURCE
34+
static constexpr auto JITLibraryPathSuffix = "/lib/libsycl-jit.so";
3535
Dl_info Info;
3636
if (dladdr(&X, &Info)) {
3737
std::string LoadedLibraryPath = Info.dli_fname;

0 commit comments

Comments
 (0)