mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
Fix Android build on Windows (#21304)
- Pass a list of files instead of path separator-delimited string to project.files(). See this issue: https://github.com/gradle/gradle/issues/19817 - Check for host (instead of target) being Windows when using fallback patch program.
This commit is contained in:
parent
dfaf18928a
commit
9c2b85ad58
2 changed files with 2 additions and 2 deletions
|
|
@ -551,7 +551,7 @@ if(NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|||
endif()
|
||||
|
||||
find_package(Patch)
|
||||
if (WIN32 AND NOT Patch_FOUND)
|
||||
if (CMAKE_HOST_WIN32 AND NOT Patch_FOUND)
|
||||
# work around CI machines missing patch from the git install by falling back to the binary in this repo.
|
||||
# replicate what happens in https://github.com/Kitware/CMake/blob/master/Modules/FindPatch.cmake but without
|
||||
# the hardcoded suffixes in the path to the patch binary.
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ task sourcesJar(type: Jar) {
|
|||
|
||||
task javadoc(type: Javadoc) {
|
||||
source = android.sourceSets.main.java.srcDirs
|
||||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||||
classpath += project.files(android.getBootClasspath())
|
||||
}
|
||||
|
||||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue