We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
main_desktop.dart
stdlib=libc++
CMakeLists.txt
1 parent 33476e1 commit fc1349aCopy full SHA for fc1349a
example/lib/main_desktop.dart
example/linux/CMakeLists.txt
@@ -44,6 +44,11 @@ function(APPLY_STANDARD_SETTINGS TARGET)
44
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
45
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
46
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
47
+
48
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
49
+ target_compile_options(${TARGET} PRIVATE -stdlib=libc++)
50
+ target_link_options(${TARGET} PRIVATE -stdlib=libc++)
51
+ endif()
52
endfunction()
53
54
# Flutter library and tool build rules.
0 commit comments