Configure.json: Do not link to pthread on Android on feature testing
pthread has been removed from the NDK and the cxx11_feature detection fails. Fixes: QTBUG-72330 Change-Id: I22a97814b7e95011ad3944327f02343348c72b91 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
95946222e6
commit
6b488d8950
1005
src/corelib/.prev_configure.cmake
Normal file
1005
src/corelib/.prev_configure.cmake
Normal file
File diff suppressed because it is too large
Load Diff
@ -119,8 +119,9 @@ int pipes[2];
|
|||||||
}
|
}
|
||||||
")
|
")
|
||||||
|
|
||||||
|
# special case begin
|
||||||
# cxx11_future
|
# cxx11_future
|
||||||
if (UNIX)
|
if (UNIX AND NOT ANDROID)
|
||||||
set(cxx11_future_TEST_LIBRARIES pthread)
|
set(cxx11_future_TEST_LIBRARIES pthread)
|
||||||
endif()
|
endif()
|
||||||
qt_config_compile_test(cxx11_future
|
qt_config_compile_test(cxx11_future
|
||||||
@ -141,6 +142,7 @@ std::future<int> f = std::async([]() { return 42; });
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
")
|
")
|
||||||
|
# special case end
|
||||||
|
|
||||||
# cxx11_random
|
# cxx11_random
|
||||||
qt_config_compile_test(cxx11_random
|
qt_config_compile_test(cxx11_random
|
||||||
|
@ -319,7 +319,7 @@
|
|||||||
"std::future<int> f = std::async([]() { return 42; });",
|
"std::future<int> f = std::async([]() { return 42; });",
|
||||||
"(void)f.get();"
|
"(void)f.get();"
|
||||||
],
|
],
|
||||||
"qmake": "unix:LIBS += -lpthread"
|
"qmake": "unix:!android:LIBS += -lpthread"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cxx11_random": {
|
"cxx11_random": {
|
||||||
|
Loading…
Reference in New Issue
Block a user