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 Aug 15, 2024
1 parent a748440 commit 0509804
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ compile_template: &COMPILE
else
MAKE_OPTS=-e
fi
make cc-version
if test "x$DO_MAINTAINER_CHECKS" = "xyes"; then
make maintainer-check
fi
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
export MSYSTEM=MINGW64
autoreconf -i
./configure
make cc-version
make -j6
- name: Check Htslib
shell: msys2 {0}
Expand Down
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: 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 0509804

Please sign in to comment.