@@ -94,10 +94,7 @@ template("mac_toolchain") {
94
94
95
95
tool (" cc" ) {
96
96
depfile = " {{output}}.d"
97
- command = " $cc -MD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
98
- if (use_rbe || use_goma ) {
99
- command += " && sed -i '' -e 's@/b/f/w@../..@g' $depfile "
100
- }
97
+ command = " $cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
101
98
depsformat = " gcc"
102
99
description = " CC {{output}}"
103
100
outputs =
@@ -106,10 +103,7 @@ template("mac_toolchain") {
106
103
107
104
tool (" cxx" ) {
108
105
depfile = " {{output}}.d"
109
- command = " $cxx -MD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
110
- if (use_rbe || use_goma ) {
111
- command += " && sed -i '' -e 's@/b/f/w@../..@g' $depfile "
112
- }
106
+ command = " $cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
113
107
depsformat = " gcc"
114
108
description = " CXX {{output}}"
115
109
outputs =
@@ -118,10 +112,7 @@ template("mac_toolchain") {
118
112
119
113
tool (" asm" ) {
120
114
depfile = " {{output}}.d"
121
- command = " $asm -MD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} {{cflags}} {{cflags_c}} $sysroot_flags -c {{source}} -o {{output}}"
122
- if (use_rbe || use_goma ) {
123
- command += " && sed -i '' -e 's@/b/f/w@../..@g' $depfile "
124
- }
115
+ command = " $asm -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} {{cflags}} {{cflags_c}} $sysroot_flags -c {{source}} -o {{output}}"
125
116
depsformat = " gcc"
126
117
description = " ASM {{output}}"
127
118
outputs =
@@ -130,10 +121,7 @@ template("mac_toolchain") {
130
121
131
122
tool (" objc" ) {
132
123
depfile = " {{output}}.d"
133
- command = " $objc -MD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} {{cflags_objc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
134
- if (use_rbe || use_goma ) {
135
- command += " && sed -i '' -e 's@/b/f/w@../..@g' $depfile "
136
- }
124
+ command = " $objc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} {{cflags_objc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
137
125
depsformat = " gcc"
138
126
description = " OBJC {{output}}"
139
127
outputs =
@@ -142,10 +130,7 @@ template("mac_toolchain") {
142
130
143
131
tool (" objcxx" ) {
144
132
depfile = " {{output}}.d"
145
- command = " $objc -MD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} {{cflags_objcc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
146
- if (use_rbe || use_goma ) {
147
- command += " && sed -i '' -e 's@/b/f/w@../..@g' $depfile "
148
- }
133
+ command = " $objc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} {{cflags_objcc}} $sysroot_flags $coverage_flags -c {{source}} -o {{output}}"
149
134
depsformat = " gcc"
150
135
description = " OBJCXX {{output}}"
151
136
outputs =
0 commit comments