Amir Ayupov da766cea56 [BOLT][TEST] Fix testing on macos
- Fix common (arch-independent) tests to explicitly target -linux triple.
- Override the triple inside arch-specific tests.
- Add cflags to common tests.
- Update individual tests.
- Expand pipe stderr `|&` shorthand.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D125548
2022-05-13 13:03:47 -07:00

16 lines
474 B
C

// The stub symbols library used for testing purposes
void *memcpy(void *dest, const void *src, unsigned long n) { return 0; }
void *memset(void *dest, int c, unsigned long n) { return 0; }
int printf(const char *format, ...) { return 0; }
void exit(int status) {}
int puts(const char *s) { return 0; }
int rand(void) { return 0; }
void *__gxx_personality_v0;
void *__cxa_allocate_exception;
void *_ZTIi;
void *__cxa_throw;
void *__cxa_begin_catch;
void *__cxa_end_catch;