aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/osx/crosstool/CROSSTOOL.tpl
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2018-07-25 10:52:12 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-25 10:53:50 -0700
commit3f46dd0f6d5a042fc28d265411a6014f666a40c1 (patch)
tree036accce85c29f38563dbcdbd4fdc5d2d7a5214a /tools/osx/crosstool/CROSSTOOL.tpl
parent24d3a01b53a603059091a690e0bddb20ef5fbc98 (diff)
Add new debug_prefix_map_pwd_is_dot CROSSTOOL feature
This feature sets `-fdebug_prefix_map=$PWD=.` as an argument to Clang in order to standardize the paths to debug symbols (by making them relative to the exec root). Note that this needs to be implemented inside wrapped_clang instead of as an argument to the action itself for caching purposes, as PWD can change based on the action's executor. PiperOrigin-RevId: 206019016
Diffstat (limited to 'tools/osx/crosstool/CROSSTOOL.tpl')
-rw-r--r--tools/osx/crosstool/CROSSTOOL.tpl180
1 files changed, 180 insertions, 0 deletions
diff --git a/tools/osx/crosstool/CROSSTOOL.tpl b/tools/osx/crosstool/CROSSTOOL.tpl
index 6686ce0e69..0e2964393d 100644
--- a/tools/osx/crosstool/CROSSTOOL.tpl
+++ b/tools/osx/crosstool/CROSSTOOL.tpl
@@ -201,6 +201,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -1830,6 +1848,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -3475,6 +3511,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -5123,6 +5177,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -6798,6 +6870,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -8443,6 +8533,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -10076,6 +10184,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -11712,6 +11838,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -13375,6 +13519,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {
@@ -15009,6 +15171,24 @@ toolchain {
}
}
feature {
+ name: "debug_prefix_map_pwd_is_dot"
+ flag_set {
+ action: "assemble"
+ action: "preprocess-assemble"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-module-compile"
+ action: "c++-module-codegen"
+ action: "linkstamp-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ flag_group {
+ flag: "DEBUG_PREFIX_MAP_PWD=."
+ }
+ }
+ }
+ feature {
name: "no_dsym_create_zip"
}
feature {