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 01a22b6 commit 75d3886Copy full SHA for 75d3886
.ci/scripts/utils.sh
@@ -111,9 +111,14 @@ build_executorch_runner_cmake() {
111
mkdir "${CMAKE_OUTPUT_DIR}"
112
113
pushd "${CMAKE_OUTPUT_DIR}" || return
114
+ if [[ $1 == "Debug" ]]; then
115
+ CXXFLAGS="-fsanitize=address,undefined"
116
+ else
117
+ CXXFLAGS=""
118
+ fi
119
# This command uses buck2 to gather source files and buck2 could crash flakily
120
# on MacOS
- retry cmake -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" -DCMAKE_BUILD_TYPE="${1:-Release}" ..
121
+ CXXFLAGS="$CXXFLAGS" retry cmake -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" -DCMAKE_BUILD_TYPE="${1:-Release}" ..
122
popd || return
123
124
if [ "$(uname)" == "Darwin" ]; then
0 commit comments