mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Jerryscript. The changes include: CMakeLists.txt: we added conditionals around GCC-specific flags, added support for TI flags, and removed the always-on debugging flag (-g) /toolchain_mcu_tim4f.cmake: new toolchain file uses TI-specific parameters jerry-api.h: the sys/types.h file was #include'd but never used, so we removed it jrt-types.h: ditto jerry-port-default-date.c: the TI toolchain doesn't include sys/time.h, so we guarded uses of the package ecma-objects-general.c: added initialization that Travis (the auto-checking tool) required JerryScript-DCO-1.0-Signed-off-by: Timothy Harvey t-harvey@ti.com
34 lines
1.3 KiB
CMake
34 lines
1.3 KiB
CMake
# Copyright JS Foundation and other contributors, http://js.foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
include(CMakeForceCompiler)
|
|
|
|
set(CMAKE_SYSTEM_NAME MCU)
|
|
set(CMAKE_SYSTEM_PROCESSOR armv7l)
|
|
set(CMAKE_SYSTEM_VERSION TIM4F)
|
|
|
|
set(FLAGS_COMMON_ARCH --little_endian --silicon_version=7M4 --float_support=FPv4SPD16)
|
|
|
|
CMAKE_FORCE_C_COMPILER(armcl TI)
|
|
|
|
SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
|
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-o4 -mf0 -DNDEBUG")
|
|
SET (CMAKE_C_FLAGS_RELEASE_INIT "-o4 -DNDEBUG")
|
|
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-o2 -g")
|
|
|
|
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
|
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-o4 -mf0 -DNDEBUG")
|
|
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-o4 -DNDEBUG")
|
|
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-o2 -g")
|