Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Coriolis VLSI EDA
Coriolis
Commits
db26e143
Commit
db26e143
authored
Jun 02, 2021
by
Jean-Paul Chaput
Browse files
Add -fsanitize=address to the DEBUG flags.
parent
fed58638
Changes
1
Hide whitespace changes
Inline
Side-by-side
bootstrap/cmake_modules/FindBootstrap.cmake
View file @
db26e143
...
...
@@ -94,12 +94,14 @@
set
(
ADDTIONAL_FLAGS
""
)
set
(
CXX_STANDARD
"c++11"
)
endif
()
#
set(CMAKE_C_FLAGS_DEBUG " -Wall -fsanitize=address ${ADDTIONAL_FLAGS} ${DEBUG_FLAGS}" CACHE STRING "C Compiler Debug options." FORCE)
set
(
CMAKE_C_FLAGS_DEBUG
" -Wall
${
ADDTIONAL_FLAGS
}
${
DEBUG_FLAGS
}
"
CACHE STRING
"C Compiler Debug options."
FORCE
)
set
(
CMAKE_C_FLAGS_DEBUG
" -Wall -fsanitize=address
${
ADDTIONAL_FLAGS
}
${
DEBUG_FLAGS
}
"
CACHE STRING
"C Compiler Debug options."
FORCE
)
#
set(CMAKE_C_FLAGS_DEBUG " -Wall ${ADDTIONAL_FLAGS} ${DEBUG_FLAGS}" CACHE STRING "C Compiler Debug options." FORCE)
set
(
CMAKE_C_FLAGS_RELEASE
" -Wall -O2
${
ADDTIONAL_FLAGS
}
-DNDEBUG"
CACHE STRING
"C Compiler Release options."
FORCE
)
#set(CMAKE_CXX_FLAGS_DEBUG "-std=${CXX_STANDARD} -Wall -fsanitize=address ${ADDTIONAL_FLAGS} ${DEBUG_FLAGS}" CACHE STRING "C++ Compiler Debug options." FORCE)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-std=
${
CXX_STANDARD
}
-Wall
${
ADDTIONAL_FLAGS
}
${
DEBUG_FLAGS
}
"
CACHE STRING
"C++ Compiler Debug options."
FORCE
)
#set(CMAKE_C_FLAGS_RELEASE " -Wall -fsanitize=address ${ADDTIONAL_FLAGS} -DNDEBUG" CACHE STRING "C Compiler Release options." FORCE)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-std=
${
CXX_STANDARD
}
-Wall -fsanitize=address
${
ADDTIONAL_FLAGS
}
${
DEBUG_FLAGS
}
"
CACHE STRING
"C++ Compiler Debug options."
FORCE
)
#set(CMAKE_CXX_FLAGS_DEBUG "-std=${CXX_STANDARD} -Wall ${ADDTIONAL_FLAGS} ${DEBUG_FLAGS}" CACHE STRING "C++ Compiler Debug options." FORCE)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-std=
${
CXX_STANDARD
}
-Wall -O2
${
ADDTIONAL_FLAGS
}
-DNDEBUG"
CACHE STRING
"C++ Compiler Release options."
FORCE
)
#set(CMAKE_CXX_FLAGS_RELEASE "-std=${CXX_STANDARD} -Wall -fsanitize=address ${ADDTIONAL_FLAGS} -DNDEBUG" CACHE STRING "C++ Compiler Release options." FORCE)
#
...
...
Write
Preview
Supports
Markdown
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