Skip to content

Commit d11a9e1

Browse files
committed
Change processor name from x86 to i686 for 32bit host
* to make it same as 'uname -p' result JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
1 parent 17a5dd2 commit d11a9e1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/configs/toolchain_afl_i686.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
include(CMakeForceCompiler)
1616

1717
set(CMAKE_SYSTEM_NAME Linux)
18-
set(CMAKE_SYSTEM_PROCESSOR x86)
18+
set(CMAKE_SYSTEM_PROCESSOR i686)
1919

2020
CMAKE_FORCE_C_COMPILER(afl-gcc GNU)
2121
CMAKE_FORCE_CXX_COMPILER(afl-g++ GNU)

build/configs/toolchain_linux_i686.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
set(CMAKE_SYSTEM_NAME Linux)
16-
set(CMAKE_SYSTEM_PROCESSOR x86)
16+
set(CMAKE_SYSTEM_PROCESSOR i686)
1717

1818
find_program(CMAKE_C_COMPILER NAMES i686-linux-gnu-gcc i686-unknown-linux-gnu-gcc)
1919
find_program(CMAKE_CXX_COMPILER NAMES i686-linux-gnu-g++ i686-unknown-linux-gnu-g++)

jerry-libc/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ set(COMPILE_FLAGS_LIBC "${COMPILE_FLAGS_JERRY} ${C_FLAGS_JERRY}")
107107
set(DEFINES_LIBC ${DEFINES_LIBC} ${DEFINES_LIBC_ARMV7_HF})
108108
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l-el")
109109
set(DEFINES_LIBC ${DEFINES_LIBC} ${DEFINES_LIBC_ARMV7_EL})
110-
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
110+
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
111111
set(DEFINES_LIBC ${DEFINES_LIBC} ${DEFINES_LIBC_X86})
112112
else()
113113
message(FATAL_ERROR "Unsupported machine architecture")
114114
endif()
115-
115+
116116
# Platform-specific configuration
117117
set(DEFINES_LIBC ${DEFINES_LIBC} ${DEFINES_LIBC_${PLATFORM}})
118118

119-
# Targets declaration
119+
# Targets declaration
120120
add_custom_target (jerry-libc-all)
121121

122122
string(TOLOWER ${PLATFORM_EXT} PLATFORM_L)

0 commit comments

Comments
 (0)