-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46eb009
commit eb7f4a0
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%global version_dir %{this_version} | ||
%global script_suffix %{version_suffix} | ||
%undefine arch_suffix | ||
%{!?build_openmpi:%global build_openmpi 1} | ||
%{!?build_mpich:%global build_mpich 1} | ||
%{!?build_intelmpi:%global build_intelmpi 1} | ||
%{!?build_docs:%global build_docs 0} | ||
%global gnu_string ompi_gnu_linux | ||
%global mpich_string mpich_gnu_linux | ||
%global intel_string impi_intel_linux_openmp | ||
%global build_dir Build | ||
%global openmpi_build_command ./make_fds.sh | ||
%global intelmpi_build_command ./make_fds.sh | ||
%global mpich_build_command \ | ||
dir=$(pwd) \ | ||
target=${dir##*/} \ | ||
make VPATH="../../Source" -f ../makefile %{gnu_string} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- a/Build/makefile | ||
+++ b/Build/makefile | ||
@@ -34,9 +34,9 @@ else | ||
else | ||
GIT_STAT := -dirty | ||
endif | ||
- GIT_DATE := $(shell git log -1 --format=%cd) | ||
+ GIT_DATE := $(shell date "+%b %d, %Y %T" --date='@${SOURCE_DATE_EPOCH}') | ||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) | ||
- BUILD_DATE := $(shell date "+%b %d, %Y %T") | ||
+ BUILD_DATE := $(shell date "+%b %d, %Y %T" --date='@${SOURCE_DATE_EPOCH}') | ||
# The preprocessor used by xlf uses comma as separation between preprocessing commands. | ||
# Commas needs to be escaped if they are to be used as part of a value in a preprocessing variable. | ||
BUILD_DATE_XLF := $(shell date "+%b %d\, %Y %T") | ||
@@ -44,7 +44,7 @@ else | ||
CLT_VERSION := $(shell ../Scripts/osx_clt.sh) | ||
endif | ||
|
||
-GITINFO_BASE=-DGITHASH_PP=\"$(GIT_HASH)$(GIT_STAT)-$(GIT_BRANCH)\" -DGITDATE_PP=\""$(GIT_DATE)\"" | ||
+GITINFO_BASE=-DGITHASH_PP=\"$(build_version)+g$(commit)$(compiler)$(mpi)$(mkl)\" -DGITDATE_PP=\""$(GIT_DATE)\"" | ||
GITINFO=-fpp $(GITINFO_BASE) -DBUILDDATE_PP=\""$(BUILD_DATE)\"" | ||
GITINFOGNU=-cpp $(GITINFO_BASE) -DBUILDDATE_PP=\""$(BUILD_DATE)\"" | ||
GITINFOXLF=-qsuffix=cpp=f90 '-WF,-DGITHASH_PP=\"$(GIT_HASH)\",-DGITDATE_PP=\"$(GIT_DATE)\",-DBUILDDATE_PP=\"$(BUILD_DATE_XLF)\"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters