From 53613ab9464a475e09684b8c4b99fd3ee022f980 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Fri, 17 Jan 2025 14:03:56 -0800 Subject: [PATCH] Don't repeat default for CMAKE_CXX_FLAGS_DEBUG Debug build type already has defaults, and the flags we set are likely to be those defaults on Unix-like platforms. Why break Windows compatibility? ghstack-source-id: cb5834ba1b2c6196ef79af8d658077ff0c59fee4 ghstack-comment-id: 2599288517 Pull Request resolved: https://github.com/pytorch/executorch/pull/7743 --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca10b1bdb9..a6efb3d462 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,8 +164,6 @@ else() set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2") endif() -set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") - option(EXECUTORCH_BUILD_ANDROID_JNI "Build Android JNI" OFF) option(EXECUTORCH_BUILD_ARM_BAREMETAL