blob: 5dd6b45a569fe49ea3208d054ef5f278609f28f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
vespa_add_library(vespalib_signalhandler_test_my_shared_library TEST
SOURCES
my_shared_library.cpp
DEPENDS
vespalib
)
# Don't convert call to jump when returning a value from a function with
# a compatible stack.
set_source_files_properties(my_shared_library.cpp PROPERTIES COMPILE_OPTIONS "-fno-optimize-sibling-calls")
vespa_add_executable(vespalib_signalhandler_test_app TEST
SOURCES
signalhandler_test.cpp
DEPENDS
vespalib
vespalib_signalhandler_test_my_shared_library
GTest::GTest
)
vespa_add_test(NAME vespalib_signalhandler_test_app NO_VALGRIND COMMAND vespalib_signalhandler_test_app)
vespa_add_executable(vespalib_victim_app
SOURCES
victim.cpp
DEPENDS
vespalib
)
|