Skip to content

Commit 12b8140

Browse files
Remove execinfo.h include in WinAdapter.h (#3797)
This small change makes it possible to build and use DirectXShaderCompiler on Android, at least on arm64-v8a. execinfo.h does not exist in Android toolchain. However it is only used by clang-hlsl-tests which can be disabled from the build. CaptureStackBackTrace is not used in any files compiled in non-Windows builds. This is because CompilerTest.cpp, where it was used, is disabled from non-Windows build at the moment. Co-authored-by: Atte Seppälä <[email protected]>
1 parent 0db66a3 commit 12b8140

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

include/dxc/Support/WinAdapter.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <typeinfo>
3333
#include <vector>
3434
#endif // __cplusplus
35-
#include <execinfo.h>
3635

3736
//===----------------------------------------------------------------------===//
3837
//
@@ -195,10 +194,6 @@
195194
#define OutputDebugStringA(msg) fputs(msg, stderr)
196195
#define OutputDebugFormatA(...) fprintf(stderr, __VA_ARGS__)
197196

198-
#define CaptureStackBackTrace(FramesToSkip, FramesToCapture, BackTrace, \
199-
BackTraceHash) \
200-
backtrace(BackTrace, FramesToCapture)
201-
202197
// Event Tracing for Windows (ETW) provides application programmers the ability
203198
// to start and stop event tracing sessions, instrument an application to
204199
// provide trace events, and consume trace events.

0 commit comments

Comments
 (0)