Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Open Source Software
Zipr Toolchain
Commits
edd99a58
Commit
edd99a58
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
added support for extra env vars from the supplment
Former-commit-id: a5d75f17cdc1bc318b5ddad20ca29745e96afa7a
parent
4f85cf24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/generate_mvee_package.sh
+11
-2
11 additions, 2 deletions
tools/generate_mvee_package.sh
with
11 additions
and
2 deletions
tools/generate_mvee_package.sh
+
11
−
2
View file @
edd99a58
...
...
@@ -957,15 +957,24 @@ finalize_json()
fi
if [
"x"
$use_noh
=
"x--enablenoh"
]; then
ld_preload_var=
"/variant_specific/noh.so:
$ld_preload_var
"
#json_contents=
"
${
json_contents
//<<ENV>>/\
"NUMVARIANTS=
$total_variants
\"
,<<ENV>>}"
fi
# remove leading/trailing spaces.
ld_preload_var=
${
ld_preload_var
%%
}
ld_preload_var=
${
ld_preload_var
##
}
ld_preload_var=
"
${
ld_preload_var
}
:
$extra_preloads
"
json_contents=
"
${
json_contents
//<<ENV>>/\
"LD_PRELOAD=
$ld_preload_var
\"
,<<ENV>>}"
# deal with extra ENV from supplement
if [[ ! -z
$sad_file
]] ; then
sad_contents=
$(
cat
$sad_file
|jq .additional_env
)
if [[
$sad_contents
!=
'null'
]]; then
sad_contents=
$(
echo
"
$sad_contents
"
|head
-n
-1
|tail
-n
+2
)
# trim open and close []
's
if [[ ! -z $sad_contents ]]; then
json_contents="${json_contents//<<ENV>>/$sad_contents,<<ENV>>}"
fi
fi
fi
# if we are supposed to include checkpoint/restore lines in the file
if [ "x"$use_includecr = "x--include-cr" ]; then
echo "Including C/R support."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment