Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RISC-V cross compilation #523

Merged
merged 1 commit into from
Apr 12, 2019
Merged
Show file tree
Hide file tree
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
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