Compare commits
2 commits
080c5e6195
...
cd797b107c
Author | SHA1 | Date | |
---|---|---|---|
cd797b107c | |||
4f027726c6 |
2 changed files with 3 additions and 3 deletions
|
@ -13,10 +13,10 @@
|
||||||
#define __neo_section(name) __attribute__(( __section__(#name) ))
|
#define __neo_section(name) __attribute__(( __section__(#name) ))
|
||||||
|
|
||||||
#define __neo_init(fn) \
|
#define __neo_init(fn) \
|
||||||
__neo_section(.init_array) static void (*__neo_init_##fn)(void) = fn
|
__neo_section(.init_array) void (*__neo_init_##fn)(void) = fn
|
||||||
|
|
||||||
#define __neo_fini(fn) \
|
#define __neo_fini(fn) \
|
||||||
__neo_section(.fini_array) static void (*__neo_fini_##fn)(void) = fn
|
__neo_section(.fini_array) void (*__neo_fini_##fn)(void) = fn
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
# define __restrict
|
# define __restrict
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
add_library(neo STATIC)
|
add_library(neo STATIC)
|
||||||
|
|
||||||
target_link_options(neo INTERFACE -T${CMAKE_CURRENT_SOURCE_DIR}/src/neo.ld)
|
target_link_options(neo INTERFACE -T${CMAKE_SOURCE_DIR}/src/neo.ld)
|
||||||
|
|
||||||
execute_process(COMMAND uname -m OUTPUT_VARIABLE HOST_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND uname -m OUTPUT_VARIABLE HOST_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
string(TOLOWER "${HOST_ARCH}" HOST_ARCH)
|
string(TOLOWER "${HOST_ARCH}" HOST_ARCH)
|
||||||
|
|
Loading…
Reference in a new issue