Skip to content

Commit d3a73d7

Browse files
authored
build: Set noarch as default TARGET_ARCH (#1947)
This will help for debian upgrade Change-Id: I2991d324b887e340cb676f7de8ea0dda2ea7c050 Forwarded: #1947 Bug: #1945 Bug-Debian: https://bugs.debian.org/957364 Origin: https://github.com/TizenTeam/iotjs/tree/sandbox/rzr/cmake/review/master IoT.js-DCO-1.0-Signed-off-by: Philippe Coval [email protected]
1 parent 4cde5a8 commit d3a73d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ if(EXPERIMENTAL)
107107
endif()
108108

109109
# Add arch-dependant flags
110+
if(NOT DEFINED TARGET_ARCH)
111+
message(WARNING "Use generic flags since TARGET_ARCH is not defined")
112+
set(TARGET_ARCH "noarch")
113+
endif()
110114
if("${TARGET_ARCH}" STREQUAL "arm")
111115
iotjs_add_compile_flags(-D__arm__ -mthumb -fno-short-enums -mlittle-endian)
112116
elseif("${TARGET_ARCH}" STREQUAL "i686")

0 commit comments

Comments
 (0)