Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbScripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LHCb Core Software
LbScripts
Merge requests
!181
Set LCG_hostos correctly and add gcc to Xenv files by default
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Set LCG_hostos correctly and add gcc to Xenv files by default
LBCORE-1388
into
master
Overview
0
Commits
1
Changes
2
Merged
Ben Couturier
requested to merge
LBCORE-1388
into
master
8 years ago
Overview
0
Commits
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2d2e3f5a
1 commit,
8 years ago
2 files
+
28
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
LbConfiguration/python/LbConfiguration/Platform.py
+
10
−
0
Options
@@ -128,6 +128,16 @@ def getArchitecture(cmtconfig):
architecture
=
"
i686
"
return
architecture
def
getHostOs
(
cmtconfig
):
"""
Return the Host os for the given CMTCONFIG.
e.g. x86_64-centos7 for x86_64+avx2+fma-centos7-gcc62-opt
"""
arch
=
getArchitecture
(
cmtconfig
)
# Cleaning up the insttruction set to get the base architecture
# e.g. x86_64 for x86_64+avx2+fma
arch
=
arch
.
split
(
'
+
'
)[
0
]
platformType
=
getPlatformType
(
cmtconfig
)
return
"
_
"
.
join
([
arch
,
platformType
])
def
getConfig
(
architecture
,
platformtype
,
compiler
,
debug
=
False
):
cmtconfig
=
None
if
platformtype
.
startswith
(
"
win
"
)
:
Loading