Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
d2ecf673
Commit
d2ecf673
authored
Jun 27, 2022
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile js-drone components with ASAN
parent
2966b448
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
2 deletions
+32
-2
component/mavsdk/buildout.cfg
component/mavsdk/buildout.cfg
+1
-0
component/open62541/address_sanitizer_for_gcc.patch
component/open62541/address_sanitizer_for_gcc.patch
+27
-0
component/open62541/buildout.cfg
component/open62541/buildout.cfg
+1
-0
component/qjs-wrapper/buildout.cfg
component/qjs-wrapper/buildout.cfg
+2
-2
component/quickjs/buildout.cfg
component/quickjs/buildout.cfg
+1
-0
No files found.
component/mavsdk/buildout.cfg
View file @
d2ecf673
...
...
@@ -37,6 +37,7 @@ pre-configure =
configure-command =
${:cmake}
configure-options =
-DASAN=ON
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_FLAGS="${:CMAKE_CFLAGS}"
-DCMAKE_CXX_FLAGS="${:CMAKE_CFLAGS}"
...
...
component/open62541/address_sanitizer_for_gcc.patch
0 → 100644
View file @
d2ecf673
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f9448b08..a947877b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -725,13 +725,16 @@
if(NOT UA_FORCE_CPP AND (CMAKE_COMPILER_IS_GNUCC OR "x${CMAKE_C_COMPILER_ID}" ST
# Debug
if(BUILD_TYPE_LOWER_CASE STREQUAL "debug" AND UNIX AND NOT UA_BUILD_OSS_FUZZ AND
- "x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang" AND NOT UA_ENABLE_UNIT_TESTS_MEMCHECK)
- # Add default sanitizer settings when using clang and Debug build.
- # This allows e.g. CLion to find memory locations for SegFaults
+ NOT UA_ENABLE_UNIT_TESTS_MEMCHECK)
message(STATUS "Sanitizer enabled")
- set(SANITIZER_FLAGS "-g -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=leak -fsanitize=undefined")
- if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0)
- set(SANITIZER_FLAGS "${SANITIZER_FLAGS} -fsanitize-coverage=trace-pc-guard")
+ set(SANITIZER_FLAGS "-g -fsanitize=address")
+ if("x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang")
+ # Add default sanitizer settings when using clang and Debug build.
+ # This allows e.g. CLion to find memory locations for SegFaults
+ set(SANITIZER_FLAGS "-g -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=leak -fsanitize=undefined")
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0)
+ set(SANITIZER_FLAGS "${SANITIZER_FLAGS} -fsanitize-coverage=trace-pc-guard")
+ endif()
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SANITIZER_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SANITIZER_FLAGS}")
component/open62541/buildout.cfg
View file @
d2ecf673
...
...
@@ -14,6 +14,7 @@ md5sum = c2e9938f082b027110fba538de76684c
patch-options = -p1
patches =
${:_profile_base_location_}/ipv6_bugfix.patch#355bec02adee4ea73ff5a56ba6971ad2
${:_profile_base_location_}/address_sanitizer_for_gcc.patch#060c22208fb3e03e3855f2f0afae4143
configure-command =
${cmake:location}/bin/cmake
configure-options =
...
...
component/qjs-wrapper/buildout.cfg
View file @
d2ecf673
...
...
@@ -10,8 +10,8 @@ parts = qjs-wrapper
recipe = slapos.recipe.cmmi
shared = true
configure-command = true
url = https://lab.nexedi.com/nexedi/qjs-wrapper/-/archive/
debug/qjs-wrapper-debug
.tar.gz
md5sum =
ad3b19805d0f0954ddaf8538e04e805c
url = https://lab.nexedi.com/nexedi/qjs-wrapper/-/archive/
asan/qjs-wrapper-asan
.tar.gz
md5sum =
c51ab047df1c773f219ab4c9cab6c4f2
environment =
C_INCLUDE_PATH=include:${open62541:location}/include:${open62541:location}/deps:${open62541:location}/src/pubsub:${quickjs:location}/include
CPLUS_INCLUDE_PATH=include:${mavsdk:location}/include:${mavsdk:location}/include/mavsdk
...
...
component/quickjs/buildout.cfg
View file @
d2ecf673
...
...
@@ -15,3 +15,4 @@ pre-install = touch libquickjs.a libquickjs.lto.a
make-options =
PROGS=qjs
STRIP=echo
ASAN=ON
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment