File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,10 @@ BIN_COMMON_BUILD_ARGS=\
156
156
-largs $(LD_FLAGS ) \
157
157
-cargs:c++ $(CXXFLAGS ) \
158
158
-gargs
159
+ INSTR_COMMON_ARGS =\
160
+ -j$(PARALLEL_BUILD ) \
161
+ -P gnatcov.gpr \
162
+ --c++-opts=$(CXXFLAGS )
159
163
160
164
bin :
161
165
# Unlike BINUTILS_BUILD_DIR for which we have a default fallback,
@@ -177,19 +181,19 @@ ifdef INSTRUMENTED
177
181
# use the version that was not instrumented as a main to compile
178
182
# gnatcov32, running gnatcov32 will not dump execution traces.
179
183
180
- gnatcov instrument -j0 -P gnatcov.gpr - XPART=gnatcov64 --c++-opts=$(CXXFLAGS)
184
+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=gnatcov64
181
185
$(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=gnatcov64 \
182
186
--src-subdirs=gnatcov-instr
183
187
184
- gnatcov instrument -j0 -P gnatcov.gpr - XPART=gnatcov32 --c++-opts=$(CXXFLAGS)
188
+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=gnatcov32
185
189
$(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=gnatcov32 \
186
190
--src-subdirs=gnatcov-instr
187
191
188
- gnatcov instrument -j0 -P gnatcov.gpr - XPART=driver --c++-opts=$(CXXFLAGS)
192
+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=driver
189
193
$(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=driver \
190
194
--src-subdirs=gnatcov-instr
191
195
192
- gnatcov instrument -j0 -P gnatcov.gpr - XPART=compiler --c++-opts=$(CXXFLAGS)
196
+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=compiler
193
197
$(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=compiler \
194
198
--src-subdirs=gnatcov-instr
195
199
else
You can’t perform that action at this time.
0 commit comments