From af8c31fd78d8d23ebcd19125dc9b2798b3cb446b Mon Sep 17 00:00:00 2001 From: claus Date: Wed, 6 Sep 2023 19:38:42 -0300 Subject: [PATCH] Removes rtti warning for c files. --- ignore_no_rtti.py | 3 +++ platformio.ini | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ignore_no_rtti.py diff --git a/ignore_no_rtti.py b/ignore_no_rtti.py new file mode 100644 index 0000000..d152ad0 --- /dev/null +++ b/ignore_no_rtti.py @@ -0,0 +1,3 @@ +Import("env") + +env.Append(CFLAGS=["-fno-rtti"]) \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 735c13a..6a7ce0e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,4 +16,5 @@ framework = espidf lib_deps = esp32-camera - \ No newline at end of file +extra_scripts = ignore_no_rtti.py +