diff options
author | Vladislav Khmelevsky <och95@yandex.ru> | 2022-02-05 01:33:11 +0300 |
---|---|---|
committer | Vladislav Khmelevsky <och95@yandex.ru> | 2022-02-08 03:42:47 +0300 |
commit | 823ebcc7a809ccdfc2b5027c329635b5c65afecd (patch) | |
tree | 1d652e9f6e2c4c1aecf7a2afa936b928e6ddec04 /bolt | |
parent | 126663211adfa862b3eb87daf244acd66cb6e9e2 (diff) |
[BOLT] Fix runtime osx cross-compile build
Place include elf.h under !apple condition
Differential Revision: https://reviews.llvm.org/D119038
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/runtime/common.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bolt/runtime/common.h b/bolt/runtime/common.h index 1f055b044150..f13cde9b2e98 100644 --- a/bolt/runtime/common.h +++ b/bolt/runtime/common.h @@ -11,6 +11,12 @@ #include <cstddef> #include <cstdint> +#include "config.h" + +#ifdef HAVE_ELF_H +#include <elf.h> +#endif + #else typedef __SIZE_TYPE__ size_t; @@ -32,12 +38,6 @@ typedef int int32_t; #endif -#include "config.h" - -#ifdef HAVE_ELF_H -#include <elf.h> -#endif - // Save all registers while keeping 16B stack alignment #define SAVE_ALL \ "push %%rax\n" \ |