diff options
| author | JRPan <[email protected]> | 2023-05-10 15:38:10 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-10 15:38:10 -0400 |
| commit | 918fe2ce65260ae29e2dab0bf8236cbdf4c817f0 (patch) | |
| tree | 983fbd1e0d6056413844960c8338c7019225b3e0 /version_detection.mk | |
| parent | cb6060a60fd38102dd222f4f1a531c8f4c725d2b (diff) | |
| parent | 948c0e1a0e379e37e60c83b9ab622217522aea86 (diff) | |
Merge branch 'dev' into cache_reserve_SEGF
Diffstat (limited to 'version_detection.mk')
| -rw-r--r-- | version_detection.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/version_detection.mk b/version_detection.mk index ee71a62..81c1d2a 100644 --- a/version_detection.mk +++ b/version_detection.mk @@ -32,7 +32,7 @@ else GPGPUSIM_VERSION=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Version/ {print $$8}' ) #Detect Git branch and commit # -GIT_COMMIT := $(shell git log -n 1 | head -1 | sed -re 's/commit (.*)/\1/') +GIT_COMMIT := $(shell git log --abbrev-commit -n 1 | head -1 | sed -re 's/commit (.*)/\1/') GIT_FILES_CHANGED_A:=$(shell git diff --numstat | wc | sed -re 's/^\s+([0-9]+).*/\1./') GIT_FILES_CHANGED:= $(GIT_FILES_CHANGED_A)$(shell git diff --numstat --cached | wc | sed -re 's/^\s+([0-9]+).*/\1/') GPGPUSIM_BUILD := gpgpu-sim_git-commit-$(GIT_COMMIT)_modified_$(GIT_FILES_CHANGED) |
