Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
tizen: make compiler overridable for GBS (#82)
Browse files Browse the repository at this point in the history
There is no arm-linux-gnueabi-gcc in Tizen's sysroot,
so I assume it is used for cross compilation,
not using Tizen's build tools.

To build using GBS (git-build-system),
this variable can be used to use system compiler "gcc" this way:

  cmake -DCMAKE_C_COMPILER=gcc .

Observed issue on Tizen:4.0:Unified (armv7l) was:

  -- Check for working C compiler: arm-linux-gnueabi-gcc
  CMake Error: your C compiler: "arm-linux-gnueabi-gcc" was not found.
  Please set CMAKE_C_COMPILER to a valid compiler path or name.

libtuv-DCO-1.0-Signed-off-by: Philippe Coval [email protected]
  • Loading branch information
rzr authored and yichoi committed Aug 11, 2017
1 parent b9f8eea commit c0594a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/config/config_arm-tizen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ include(CMakeForceCompiler)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

SET(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
if(NOT DEFINED CMAKE_C_COMPILER)
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
endif()

0 comments on commit c0594a8

Please sign in to comment.