Skip to content

Commit 94a6f18

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
kasantest: add CMakeLists.txt
Signed-off-by: wangmingrong1 <[email protected]>
1 parent 1fb3687 commit 94a6f18

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

testing/kasantest/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ##############################################################################
2+
# apps/testing/kasantest/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
21+
if(CONFIG_TESTING_KASAN)
22+
set(CFLAGS -Wno-error -Wno-use-after-free -Wno-array-bounds
23+
-Wno-free-nonheap-object -Wno-stringop-overflow "-O0")
24+
nuttx_add_application(NAME kasantest COMPILE_FLAGS ${CFLAGS} SRCS kasantest.c)
25+
endif()

0 commit comments

Comments
 (0)