commit | ff378c0e797121fb0ac85d3d19bf6797326d7f01 | [log] [tgz] |
---|---|---|
author | Ryan Macnak <rmacnak@google.com> | Wed Jun 14 20:36:48 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 14 20:36:48 2023 +0000 |
tree | 8816acfd53f9abc155b9ac37992be364e5e74046 | |
parent | e8ce98ac780278af33a467b6d1c73f05320ce4a3 [diff] |
[vm] Fix building with older sysroots. Cf. dfce3aa0ff95e2b9559c3aaf397205243afa7a20 TEST=https://ci.chromium.org/p/fuchsia/g/dart/console Change-Id: I8c385931548bace9d0753f7dcbae829eff0079bd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/309520 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Tess Strickland <sstrickl@google.com>
diff --git a/runtime/vm/os_linux.cc b/runtime/vm/os_linux.cc index 14e0f61..8d98395 100644 --- a/runtime/vm/os_linux.cc +++ b/runtime/vm/os_linux.cc
@@ -44,6 +44,11 @@ #define ElfW(Type) Elf32_##Type #endif +// Missing from older versions of <elf.h>. +#if !defined(EM_RISCV) +#define EM_RISCV 243 +#endif + #ifndef PRODUCT DEFINE_FLAG(bool,