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