mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-13 22:51:31 +01:00
Android: Use clang
This commit is contained in:
parent
5e7bd3add1
commit
6fb4121ea9
@ -25,6 +25,7 @@ RUN mkdir -p /build && \
|
|||||||
./build/tools/make_standalone_toolchain.py \
|
./build/tools/make_standalone_toolchain.py \
|
||||||
--arch arm \
|
--arch arm \
|
||||||
--api 16 \
|
--api 16 \
|
||||||
|
--stl=libc++ \
|
||||||
--install-dir=${CROSS_ROOT} && \
|
--install-dir=${CROSS_ROOT} && \
|
||||||
cd / && \
|
cd / && \
|
||||||
rm -rf /build && \
|
rm -rf /build && \
|
||||||
|
@ -6,8 +6,8 @@ set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN /usr/${cross_triple}/)
|
|||||||
set(CMAKE_ANDROID_ARM_MODE 1)
|
set(CMAKE_ANDROID_ARM_MODE 1)
|
||||||
set(CMAKE_ANDROID_ARM_NEON 1)
|
set(CMAKE_ANDROID_ARM_NEON 1)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-gcc)
|
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang)
|
||||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-g++)
|
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang++)
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
|
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
Loading…
Reference in New Issue
Block a user