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:
6666 echo "##vso[task.setvariable variable=LLVM_NM]$(rustc --print sysroot)\\lib\\rustlib\\x86_64-pc-windows-msvc\\bin\\llvm-nm.exe"
6767 displayName: Find llvm-nm (Windows)
6868 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'))
6983 - task : CMake@1
7084 inputs :
7185 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)
7387 displayName : Configure
7488 - task : CMake@1
7589 inputs :
You can’t perform that action at this time.
0 commit comments