Skip to content

Commit

Permalink
wx: aarch build
Browse files Browse the repository at this point in the history
* for aarch64:
  * specify the build type
  * enable the arm neon optimizations
* only effects arm 7 and greater
* #301
  • Loading branch information
Scott M Anderson committed Mar 16, 2021
1 parent 75d43e6 commit 25b462e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions projects/wx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ function(build_wxv)
if(${CMAKE_C_COMPILER_ID} MATCHES "Clang")
list(APPEND XP_CONFIGURE_BASE CC=clang)
endif()
execute_process(COMMAND uname --machine
OUTPUT_VARIABLE unameMachine
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE unameErr
)
if(DEFINED unameMachine AND NOT unameErr AND unameMachine MATCHES "^aarch")
list(APPEND XP_CONFIGURE_BASE --build=aarch64-unknown-linux-gnu --enable-arm-neon)
endif()
list(APPEND XP_CONFIGURE_BASE ${wx_CONFIGURE_FLAGS} --with-opengl
--with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin
--with-expat=builtin --with-regex=builtin --with-zlib=builtin
Expand Down

0 comments on commit 25b462e

Please sign in to comment.