Skip to content

Commit

Permalink
(#5): Set the right arch inside install-sysroot.py argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aisouard committed Apr 2, 2017
1 parent b3651f0 commit f7e0151
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webrtc/CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,17 @@ libwebrtc_command(
set(_DEPENDENCIES webrtc-clang)

if (UNIX AND NOT APPLE)
set(SYSROOT_ARCH ${TARGET_CPU})

if (SYSROOT_ARCH STREQUAL "x64")
set(SYSROOT_ARCH "amd64")
elseif (SYSROOT_ARCH STREQUAL "x86")
set(SYSROOT_ARCH "i386")
endif (SYSROOT_ARCH STREQUAL "x64")

libwebrtc_command(
NAME webrtc-toolchain
COMMAND ${PYTHON_EXECUTABLE} ${WEBRTC_PARENT_DIR}/src/build/linux/sysroot_scripts/install-sysroot.py --arch=${TARGET_CPU} --running-as-hook
COMMAND ${PYTHON_EXECUTABLE} ${WEBRTC_PARENT_DIR}/src/build/linux/sysroot_scripts/install-sysroot.py --arch=${SYSROOT_ARCH} --running-as-hook
WORKING_DIRECTORY "${WEBRTC_PARENT_DIR}"
COMMENT "Retrieving sysroot"
DEPENDS webrtc-sync
Expand Down

0 comments on commit f7e0151

Please sign in to comment.