Skip to content

Commit

Permalink
[mldr] Add __arm64__ Macro If Building For ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousTommy committed Jan 22, 2024
1 parent 3211002 commit 26fb4e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/startup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Ttext-segment,0x400000 -Wl,-Tbss,0x410000 -Wl,-Tdata,0x420000")
add_definitions(-DINSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}" -D_GNU_SOURCE -DMLDR_BUILD)

if(TARGET_ARM64)
add_definitions(-D__arm64__)
endif(TARGET_ARM64)

add_executable(darling darling.c)

target_link_libraries(darling -lutil)
Expand Down

0 comments on commit 26fb4e7

Please sign in to comment.