Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Merge requests
!399
Adding check, so we only collect git info if the SRC dir is a cloned repo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Adding check, so we only collect git info if the SRC dir is a cloned repo
ezekiel.dohmen/advligorts:git-hash-check
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Ezekiel Dohmen
requested to merge
ezekiel.dohmen/advligorts:git-hash-check
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b40d471f
1 commit,
2 years ago
1 file
+
4
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Makefile.in
+
4
−
0
Options
@@ -9,6 +9,7 @@ models_dir:= $(bld_dir)/models
bld_utils_dir
:=
$(
bld_dir
)
/utils
linux_version
:=
'@linux_version@'
VPATH
=
$(
srcdir
)
IS_RCG_SRC_GIT_REPO
:=
$(
shell
(
cd
$(
srcdir
)
&&
git rev-parse
--is-inside-work-tree
)
)
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
@@ -29,6 +30,7 @@ RELEASEFLAGS=-DNDEBUG -DNPROBE -g -O5
DEVFLAGS
=
@DEVFLAGS@
NUM_BUILD_THREDS
?=
1
define
DIE
(tail
$(bld_log);
cat
$(err_log)
&&
/bin/false)
endef
@@ -99,8 +101,10 @@ endif
@
#Save build config and source files for traceability
@/bin/mkdir
-p
$(bld_info_dir)
@echo
$(srcdir)
>
$(bld_info_dir)/rcg_location.txt
ifeq
(true,$(IS_RCG_SRC_GIT_REPO))
#Only capture git info if our RCG_SRC is a git repo
@(cd
$(srcdir)
&&
git
rev-parse
HEAD)
>
$(bld_info_dir)/rcg_git_hash.txt
@(cd
$(srcdir)
&&
git
--no-pager
diff)
>
$(bld_info_dir)/rcg_git_diff.txt
endif
@echo
Build
date
`date`
>
$(bld_info_dir)/build.txt
@echo
Compiled
on
`hostname`
>>
$(bld_info_dir)/build.txt
@echo
RCG_LIB_PATH
=
${
RCG_LIB_PATH
}
>>
$(
bld_info_dir
)
/build.txt
Loading