Skip to content

Commit

Permalink
Merge pull request #523 from nhynes/riscv
Browse files Browse the repository at this point in the history
Support RISC-V cross compilation
  • Loading branch information
szha authored Apr 12, 2019
2 parents 3ffea86 + 61a5002 commit 82bf4c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/dmlc/build_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#if (defined(__GNUC__) && !defined(__MINGW32__)\
&& !defined(__sun) && !defined(__SVR4)\
&& !(defined __MINGW64__) && !(defined __ANDROID__))\
&& !defined(__CYGWIN__) && !defined(__EMSCRIPTEN__)
&& !defined(__CYGWIN__) && !defined(__EMSCRIPTEN__)\
&& !defined(__RISCV__)
#define DMLC_LOG_STACK_TRACE 1
#define DMLC_LOG_STACK_TRACE_SIZE 10
#define DMLC_EXECINFO_H <execinfo.h>
Expand Down
2 changes: 1 addition & 1 deletion include/dmlc/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#else
#if defined(__APPLE__) || defined(_WIN32)
#define DMLC_LITTLE_ENDIAN 1
#elif defined(__GLIBC__) || defined(__ANDROID__)
#elif defined(__GLIBC__) || defined(__ANDROID__) || defined(__RISCV__)
#include <endian.h>
#define DMLC_LITTLE_ENDIAN (__BYTE_ORDER == __LITTLE_ENDIAN)
#elif defined(__FreeBSD__)
Expand Down

0 comments on commit 82bf4c2

Please sign in to comment.