File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,24 @@ jobs:
66
66
echo "##vso[task.setvariable variable=LLVM_NM]$(rustc --print sysroot)\\lib\\rustlib\\x86_64-pc-windows-msvc\\bin\\llvm-nm.exe"
67
67
displayName: Find llvm-nm (Windows)
68
68
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
69
+ - task : UsePythonVersion@0
70
+ inputs :
71
+ versionSpec : 3.7
72
+ addToPath : true
73
+ displayName : Select Python
74
+ name : python
75
+ - bash : |
76
+ echo "##vso[task.setvariable variable=PYTHON]$(python.pythonLocation)/python"
77
+ displayName: Find Python (!Windows)
78
+ condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
79
+ - script : |
80
+ echo ##vso[task.setvariable variable=PYTHON]$(python.pythonLocation)\python.exe
81
+ displayName: Find Python (Windows)
82
+ condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
69
83
- task : CMake@1
70
84
inputs :
71
85
workingDirectory : $(Build.BinariesDirectory)
72
- cmakeArgs : -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_AR=$(LLVM_AR) -DCMAKE_NM=$(LLVM_NM) -DCMAKE_C_COMPILER=clang -S $(Build.SourcesDirectory)
86
+ cmakeArgs : -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_AR=$(LLVM_AR) -DCMAKE_NM=$(LLVM_NM) -DCMAKE_C_COMPILER=clang -DPython_EXECUTABLE=$(PYTHON) - S $(Build.SourcesDirectory)
73
87
displayName : Configure
74
88
- task : CMake@1
75
89
inputs :
You can’t perform that action at this time.
0 commit comments