Skip to content

Commit

Permalink
Report the compiler and version when building.
Browse files Browse the repository at this point in the history
Useful when diagnosing CI systems.
  • Loading branch information
jkbonfield committed Jul 18, 2024
1 parent fba0c79 commit dd735ca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,14 @@ BUILT_THRASH_PROGRAMS = \
test/thrash_threads6 \
test/thrash_threads7

all: lib-static lib-shared $(BUILT_PROGRAMS) plugins $(BUILT_TEST_PROGRAMS) \
htslib_static.mk htslib-uninstalled.pc
all: cc-version lib-static lib-shared $(BUILT_PROGRAMS) plugins \
$(BUILT_TEST_PROGRAMS) htslib_static.mk htslib-uninstalled.pc

# Report compiler and version
cc-version:
-@$(CC) --version 2>/dev/null || true
-@$(CC) --qversion 2>/dev/null || true
-@$(CC) -V 2>/dev/null || true

ALL_CPPFLAGS = -I. $(CPPFLAGS)

Expand Down Expand Up @@ -996,3 +1002,4 @@ force:
.PHONY: clean-dylib install-dylib
.PHONY: test_htscodecs_rans4x8 test_htscodecs_rans4x16 test_htscodecs_arith
.PHONY: test_htscodecs_tok3 test_htscodecs_fqzcomp test_htscodecs_varint
.PHONY: cc-version

0 comments on commit dd735ca

Please sign in to comment.