Skip to content

Commit eec389b

Browse files
authored
Add ldpath parameter for library path configuration (#145)
Added 'ldpath' parameter to specify library path for builds.
1 parent fa62302 commit eec389b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎templates/build.yaml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,31 @@ parameters:
88
- name: builddir
99
type: string
1010
default: 'build'
11+
- name: ldpath
12+
type: string
13+
default: ''
1114

1215
steps:
1316
- script: |
17+
if [ -n "${{ parameters.ldpath }}" ]; then
18+
export LD_LIBRARY_PATH="${{ parameters.ldpath }}:$LD_LIBRARY_PATH"
19+
fi
20+
1421
mkdir -p ${{ parameters.srcPath }}/${{ parameters.builddir }} && cd ${{ parameters.srcPath }}/${{ parameters.builddir }}
1522
cmake ..
1623
make
1724
displayName: "Build Procmon binaries"
1825

1926
- script: |
27+
if [ -n "${{ parameters.ldpath }}" ]; then
28+
export LD_LIBRARY_PATH="${{ parameters.ldpath }}:$LD_LIBRARY_PATH"
29+
fi
30+
2031
if [ ${{ parameters.runStaticAnalysis }} == True ]; then
2132
rm -rf ${{ parameters.srcPath }}/${{ parameters.builddir }} && mkdir -p ${{ parameters.srcPath }}/${{ parameters.builddir }} && cd ${{ parameters.srcPath }}/${{ parameters.builddir }}
2233
scan-build cmake ..
2334
scan-build -v --status-bugs -o verifier_result --exclude ../src/logging --exclude ../src/tracer/ebpf --exclude ../src/sym --exclude ../vendor -disable-checker cplusplus.NewDelete,cplusplus.NewDeleteLeaks make
2435
else
2536
echo "Skipping static code analysis."
2637
fi
27-
displayName: "Static analysis of Procmon source code"
38+
displayName: "Static analysis of Procmon source code"

0 commit comments

Comments
 (0)