PARQUET-961: Do not include debug symbols in release builds by default
Author: Wes McKinney <wes.mckinney@twosigma.com>
Closes #305 from wesm/PARQUET-961 and squashes the following commits:
fc0e029 [Wes McKinney] Do not include debug symbols in release builds by default
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0809db4..389c09c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -342,10 +342,11 @@
# Same as DEBUG, except with -O1
# For CMAKE_BUILD_TYPE=Release
# -O3: Enable all compiler optimizations
-# -g: Enable symbols for profiler tools (TODO: remove for shipping)
+# Debug symbols are stripped for reduced binary size. Add
+# -DPARQUET_CXXFLAGS="-g" to include them
set(CXX_FLAGS_DEBUG "-ggdb -O0")
set(CXX_FLAGS_FASTDEBUG "-ggdb -O1")
-set(CXX_FLAGS_RELEASE "-O3 -g")
+set(CXX_FLAGS_RELEASE "-O3")
string (TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)