We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e77b1 commit 7f8e92eCopy full SHA for 7f8e92e
.ci/scripts/utils.sh
@@ -92,9 +92,14 @@ build_executorch_runner_cmake() {
92
mkdir "${CMAKE_OUTPUT_DIR}"
93
94
pushd "${CMAKE_OUTPUT_DIR}" || return
95
+ if [[ $1 == "Debug" ]]; then
96
+ CXXFLAGS="-fsanitize=address,undefined"
97
+ else
98
+ CXXFLAGS=""
99
+ fi
100
# This command uses buck2 to gather source files and buck2 could crash flakily
101
# on MacOS
- retry cmake -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" -DCMAKE_BUILD_TYPE="${1:-Release}" ..
102
+ CXXFLAGS="$CXXFLAGS" retry cmake -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" -DCMAKE_BUILD_TYPE="${1:-Release}" ..
103
popd || return
104
105
if [ "$(uname)" == "Darwin" ]; then
0 commit comments