From 02a54c7d7b61949b7122c42f10f311d0a49992d8 Mon Sep 17 00:00:00 2001 From: 0x1def <0x1def@flakybit.net> Date: Wed, 8 Nov 2023 13:30:31 +0300 Subject: [PATCH] Added -g2 patch --- 0001-Compile-without-debug-symbols.patch | 12 ++++++++++++ README.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 0001-Compile-without-debug-symbols.patch diff --git a/0001-Compile-without-debug-symbols.patch b/0001-Compile-without-debug-symbols.patch new file mode 100644 index 0000000..0fa383b --- /dev/null +++ b/0001-Compile-without-debug-symbols.patch @@ -0,0 +1,12 @@ +# patch < 0001-Compile-without-debug-symbols.patch + +--- a/SConstruct ++++ b/SConstruct +@@ -3037,7 +3037,6 @@ if env.TargetOSIs('posix'): + env.Append( + CCFLAGS=[ + "-fasynchronous-unwind-tables", +- "-g2" if not env.TargetOSIs('emscripten') else "-g", + "-Wall", + "-Wsign-compare", + "-Wno-unknown-pragmas", diff --git a/README.md b/README.md index 7d9df0e..3103be5 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ python3 -m venv .venv --prompt mongo source .venv/bin/activate python3 -m pip install -r etc/pip/compile-requirements.txt -# Apply patch here +patch < 0001-Compile-without-debug-symbols.patch python3 buildscripts/scons.py install-servers --config=force \ -j16 \