aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/clang.txt
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-28 16:19:32 +0200
committerSimon Warta <[email protected]>2015-07-21 20:06:17 +0200
commit8e552a417cc895e9a20eadc2c3684c5e3925e0db (patch)
tree79c8dacc7d2011ff1205aa624662536814c2fd22 /src/build-data/cc/clang.txt
parent3addb45a8e900dc4710a933278db7eb75716a8fd (diff)
Make release/debug versions for: compile_flags, lib_opt_flags and app_opt_flags
This commit aims to preserve all settings. In some cases it will drop optimization flags and fall back to compiler's defaults in the new debug mode.
Diffstat (limited to 'src/build-data/cc/clang.txt')
-rw-r--r--src/build-data/cc/clang.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index 195318291..5921f634c 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -13,18 +13,19 @@ lang_flags "-std=c++11 -D_REENTRANT -fstack-protector"
warning_flags "-Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wunreachable-code"
maintainer_warning_flags "-Qunused-arguments -Werror -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=unreachable-code"
-makefile_style gmake
+compile_flags_release ""
+compile_flags_debug "-g"
+lib_opt_flags_release "-O3"
+app_opt_flags_release "-O2"
-lib_opt_flags "-O3"
-app_opt_flags "-O2"
shared_flags "-fPIC"
-debug_flags "-g"
-no_debug_flags ""
coverage_flags "--coverage"
visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'
+makefile_style gmake
+
<so_link_flags>
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"