[A] Added tests without wchar support
This commit is contained in:
parent
a0288218b5
commit
78f6173486
12
.travis.yml
12
.travis.yml
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user