aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
diff options
context:
space:
mode:
authorGravatar cpeyser <cpeyser@google.com>2017-10-20 23:15:10 +0200
committerGravatar Dmitry Lomov <dslomov@google.com>2017-10-23 17:16:15 +0200
commite9b10399f6a148a3d20442f2c5020b05fa891873 (patch)
tree4786a279489517fcfa7c8e4ce9e7e405415254ec /src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
parent539b22b15c0114402e52151f63a2c83c95010244 (diff)
Move hard-coded compilation-mode-specific flags in ObjcConfiguration.
PiperOrigin-RevId: 172932367
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL300
1 files changed, 300 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
index 8287985c6f..ed166f260e 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
+++ b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
@@ -131,11 +131,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -187,6 +195,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -1899,11 +1924,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
linking_mode_flags {
mode: DYNAMIC
@@ -1960,6 +1993,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -3672,11 +3722,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -3728,6 +3786,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -5440,11 +5515,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -5496,6 +5579,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -7210,11 +7310,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -7268,6 +7376,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -8988,11 +9113,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -9046,6 +9179,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -10768,12 +10918,20 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
compiler_flag: "-DNS_BLOCK_ASSERTIONS=1"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -10827,6 +10985,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -12578,11 +12753,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -12636,6 +12819,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -14356,11 +14556,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -14414,6 +14622,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -16154,11 +16379,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -16212,6 +16445,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -17954,12 +18204,20 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
compiler_flag: "-DNS_BLOCK_ASSERTIONS=1"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -18013,6 +18271,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}
@@ -19784,11 +20059,19 @@ toolchain {
mode: OPT
compiler_flag: "-Os"
compiler_flag: "-DNDEBUG"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
+ compiler_flag: "-Wno-unused-variable"
+ compiler_flag: "-Winit-self"
+ compiler_flag: "-Wno-extra"
}
compilation_mode_flags {
mode: DBG
compiler_flag: "-g"
compiler_flag: "-DDEBUG"
+ compiler_flag: "-O0"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fstack-protector-all"
}
make_variable {
name: "STACK_FRAME_UNLIMITED"
@@ -19842,6 +20125,23 @@ toolchain {
implies: "opt_only_flag"
}
feature {
+ name: "use_glibcxx_dbg_opts"
+ flag_set {
+ action: "c-compile"
+ action: "c++-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "-D_GLIBCXX_DEBUG"
+ flag: "-D_GLIBCXX_DEBUG_PEDANTIC"
+ flag: "-D_GLIBCPP_CONCEPT_CHECKS"
+ }
+ }
+ requires {
+ feature: "dbg"
+ }
+ }
+ feature {
name: "dbg"
implies: "dbg_only_flag"
}