Support gcc in Mac OS X build

- if `gcc` exist, use `gcc` for build, otherwise use `cc(=clang)` for build.

JerryScript-DCO-1.0-Signed-off-by: Sung-Jae Lee sjlee@mail.com
This commit is contained in:
Sung-Jae Lee
2015-09-17 01:06:11 +09:00
parent 66975236bc
commit cc7501309a
3 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -15,9 +15,9 @@
set(CMAKE_SYSTEM_NAME Darwin)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
find_program(CMAKE_C_COMPILER NAMES cc)
find_program(CMAKE_CXX_COMPILER NAMES c++)
find_program(CMAKE_C_COMPILER NAMES gcc cc)
find_program(CMAKE_CXX_COMPILER NAMES g++ c++)
# FIXME: This could break cross compilation, when the strip is not for the target architecture
find_program(CMAKE_STRIP NAMES strip)
#set(FLAGS_COMMON_ARCH -ffixed-rbp)
#set(FLAGS_COMMON_ARCH )