Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions sycl/source/detail/scheduler/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
#include <string>
#include <vector>

#ifdef __GNUG__
#ifdef __has_include
#if __has_include(<cxxabi.h>)
#define __SYCL_ENABLE_GNU_DEMANGLING
#include <cstdlib>
#include <cxxabi.h>
#include <memory>
#endif
#endif

#ifdef XPTI_ENABLE_INSTRUMENTATION
#include "xpti_trace_framework.hpp"
Expand All @@ -49,7 +52,7 @@ namespace detail {
extern xpti::trace_event_data_t *GSYCLGraphEvent;
#endif

#ifdef __GNUG__
#ifdef __SYCL_ENABLE_GNU_DEMANGLING
struct DemangleHandle {
char *p;
DemangleHandle(char *ptr) : p(ptr) {}
Expand Down