Skip to content

Commit 91247d5

Browse files
committed
cmake: Removed CMake flags for controlling C standard
- `CMAKE_C_EXTENSIONS`: Enable/disable compiler-specific extensions - `CMAKE_C_STANDARD`: Set C standard (C99, C11) - These variables (as set in mbedtls) set the C standard to C99 for ESP-IDF as well, resulting in build errors related to `asm volatile`
1 parent ea5514d commit 91247d5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
172172

173173
include(CheckCCompilerFlag)
174174

175-
set(CMAKE_C_EXTENSIONS OFF)
176-
set(CMAKE_C_STANDARD 99)
177175

178176
if(CMAKE_COMPILER_IS_GNU)
179177
# some warnings we want are not available with old GCC versions

0 commit comments

Comments
 (0)