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=\
156156 -largs $(LD_FLAGS ) \
157157 -cargs:c++ $(CXXFLAGS ) \
158158 -gargs
159+ INSTR_COMMON_ARGS =\
160+ -j$(PARALLEL_BUILD ) \
161+ -P gnatcov.gpr \
162+ --c++-opts=$(CXXFLAGS )
159163
160164bin :
161165# Unlike BINUTILS_BUILD_DIR for which we have a default fallback,
@@ -177,19 +181,19 @@ ifdef INSTRUMENTED
177181 # use the version that was not instrumented as a main to compile
178182 # gnatcov32, running gnatcov32 will not dump execution traces.
179183
180- gnatcov instrument -j0 -P gnatcov.gpr - XPART=gnatcov64 --c++-opts=$(CXXFLAGS)
184+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=gnatcov64
181185 $(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=gnatcov64 \
182186 --src-subdirs=gnatcov-instr
183187
184- gnatcov instrument -j0 -P gnatcov.gpr - XPART=gnatcov32 --c++-opts=$(CXXFLAGS)
188+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=gnatcov32
185189 $(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=gnatcov32 \
186190 --src-subdirs=gnatcov-instr
187191
188- gnatcov instrument -j0 -P gnatcov.gpr - XPART=driver --c++-opts=$(CXXFLAGS)
192+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=driver
189193 $(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=driver \
190194 --src-subdirs=gnatcov-instr
191195
192- gnatcov instrument -j0 -P gnatcov.gpr - XPART=compiler --c++-opts=$(CXXFLAGS)
196+ gnatcov instrument $(INSTR_COMMON_ARGS) - XPART=compiler
193197 $(GPRBUILD) $(BIN_COMMON_BUILD_ARGS) -XPART=compiler \
194198 --src-subdirs=gnatcov-instr
195199else
You can’t perform that action at this time.
0 commit comments