4848 rustup update stable --no-self-update
4949 rustup default stable
5050 rustup component add llvm-tools-preview
51- echo "##vso[task.setvariable variable=WASM_NM;]$(rustc --print sysroot|sed 's|C:|/c|'|sed 's|\\|/|g')/lib/rustlib/x86_64-pc-windows-msvc/bin/llvm-nm.exe"
52- displayName: Install llvm-nm (Windows)
51+ displayName: Install LLVM tools (Windows)
5352 condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
5453 - bash : |
5554 echo "##vso[task.setvariable variable=LLVM_AR]$(which llvm-ar)"
@@ -59,10 +58,18 @@ jobs:
5958 echo ##vso[task.setvariable variable=LLVM_AR]%CD%\citools\clang-rust\bin\llvm-ar.exe
6059 displayName: Find llvm-ar (Windows)
6160 condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
61+ - bash : |
62+ echo "##vso[task.setvariable variable=LLVM_NM]$(which llvm-nm)"
63+ displayName: Find llvm-nm (!Windows)
64+ condition: and(succeeded(), not(eq(variables['Agent.OS'], 'Windows_NT')))
65+ - bash : |
66+ echo "##vso[task.setvariable variable=LLVM_NM]$(rustc --print sysroot)\\lib\\rustlib\\x86_64-pc-windows-msvc\\bin\\llvm-nm.exe"
67+ displayName: Find llvm-nm (Windows)
68+ condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
6269 - task : CMake@1
6370 inputs :
6471 workingDirectory : $(Build.BinariesDirectory)
65- cmakeArgs : -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_AR=$(LLVM_AR) -DCMAKE_C_COMPILER=clang -S $(Build.SourcesDirectory)
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)
6673 displayName : Configure
6774 - task : CMake@1
6875 inputs :
0 commit comments