Skip to content

Commit cc309c3

Browse files
committed
Report the compiler and version when building.
Useful when diagnosing CI systems.
1 parent a748440 commit cc309c3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.cirrus.yml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ compile_template: &COMPILE
4040
else
4141
MAKE_OPTS=-e
4242
fi
43+
make cc-version
4344
if test "x$DO_MAINTAINER_CHECKS" = "xyes"; then
4445
make maintainer-check
4546
fi

Makefile

+9-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,14 @@ BUILT_THRASH_PROGRAMS = \
113113
test/thrash_threads6 \
114114
test/thrash_threads7
115115

116-
all: lib-static lib-shared $(BUILT_PROGRAMS) plugins $(BUILT_TEST_PROGRAMS) \
117-
htslib_static.mk htslib-uninstalled.pc
116+
all: lib-static lib-shared $(BUILT_PROGRAMS) plugins \
117+
$(BUILT_TEST_PROGRAMS) htslib_static.mk htslib-uninstalled.pc
118+
119+
# Report compiler and version
120+
cc-version:
121+
-@$(CC) --version 2>/dev/null || true
122+
-@$(CC) --qversion 2>/dev/null || true
123+
-@$(CC) -V 2>/dev/null || true
118124

119125
ALL_CPPFLAGS = -I. $(CPPFLAGS)
120126

@@ -996,3 +1002,4 @@ force:
9961002
.PHONY: clean-dylib install-dylib
9971003
.PHONY: test_htscodecs_rans4x8 test_htscodecs_rans4x16 test_htscodecs_arith
9981004
.PHONY: test_htscodecs_tok3 test_htscodecs_fqzcomp test_htscodecs_varint
1005+
.PHONY: cc-version

0 commit comments

Comments
 (0)