1
0
Fork 0

[A] Added tests without wchar support

This commit is contained in:
seleznevae 2018-11-16 21:16:05 +03:00
parent a0288218b5
commit 78f6173486
2 changed files with 17 additions and 1 deletions

View File

@ -110,6 +110,18 @@ script:
- ./libfort_test_dev
- ./libfort_test
# Test without WCHAR support
- cd ..
- rm -r build/*
- mkdir -p build
- cd build
- cmake .. -DFORT_ENABLE_WCHAR=OFF
- cmake --build . --target all
- ls
- ./libfort_example
- ./libfort_test_dev
- ./libfort_test
# Test build without optimizations and with ubsan
- |
if [ "${CC}" = 'gcc-7' ]; then

View File

@ -7,6 +7,7 @@ include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
# Built options
option(FORT_CXX_BUILD "Compile with c++ compiler instead of c" OFF)
option(FORT_ENABLE_ASTYLE "Enable astyle" OFF)
option(FORT_ENABLE_WCHAR "Enable wchar support" ON)
set(FORT_BUILD_TYPE "common" CACHE STRING "Build types(common, asan, ubsan, coveralls)")
@ -26,7 +27,10 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
# ------------------------------------------------------------------------------
# Add WChar support for the build
# ------------------------------------------------------------------------------
add_definitions(-DFT_CONGIG_HAVE_WCHAR)
if(FORT_ENABLE_WCHAR)
add_definitions(-DFT_CONGIG_HAVE_WCHAR)
endif(FORT_ENABLE_WCHAR)
# ------------------------------------------------------------------------------
# Includes