bareflank-hypervisor/scripts/cmake/flags/test_flags.cmake
Rian Quinn ee7b537564
Re-enable Codecov (#582)
This patch re-enables codecov so that it can calculate our
current code coverage. This will likely result in failed tests
until code coverage is fixed.

Signed-off-by: “rianquinn” <“rianquinn@gmail.com”>
2018-01-27 08:01:24 -07:00

68 lines
1.6 KiB
CMake

#
# Bareflank Hypervisor
# Copyright (C) 2015 Assured Information Security, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
unset(BFFLAGS_TEST)
unset(BFFLAGS_TEST_C)
unset(BFFLAGS_TEST_CXX)
unset(BFFLAGS_TEST_X86_64)
unset(BFFLAGS_TEST_AARCH64)
list(APPEND BFFLAGS_TEST
-DGSL_THROW_ON_CONTRACT_VIOLATION
-DNATIVE
-D${OSTYPE}
-D${ABITYPE}
-DENABLE_BUILD_TEST
-DDEBUG_LEVEL=5
)
if(NOT WIN32)
list(APPEND BFFLAGS_TEST
-fpic
-fno-stack-protector
-fvisibility=hidden
)
list(APPEND BFFLAGS_TEST_C
-std=c11
)
list(APPEND BFFLAGS_TEST_CXX
-std=c++14
-fvisibility-inlines-hidden
)
list(APPEND BFFLAGS_TEST_X86_64
-msse
-msse2
-msse3
)
else()
list(APPEND BFFLAGS_TEST
/EHsc
/bigobj
/WX
/D_SCL_SECURE_NO_WARNINGS
/D_CRT_SECURE_NO_WARNINGS
/DNOMINMAX
)
list(APPEND BFFLAGS_TEST_CXX
/std:c++latest
)
endif()