From 9915307bc0b9f9139bb5143a771bffe96079b13d Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Tue, 4 Oct 2016 11:51:03 +0200 Subject: [PATCH] Drop `-gdwarf-4` from compiler flags (#1385) `-g` is enough (most modern compilers use DWARF4 as default, at least, e.g., GCC has switched from DWARF2 in 4.8), more future proof (if a compiler moves to a newer version, it wont get forced to a fixed older version), and less restrictive (some compilers handle the "standard" `-g` only but don't understand its variants). JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69c11f54e..7ffc15ae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,7 +148,7 @@ endif() jerry_add_compile_flags(-fno-stack-protector) # Debug information -jerry_add_compile_flags(-g -gdwarf-4) +jerry_add_compile_flags(-g) jerry_add_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations) jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes)