Skip to content

Commit fc1349a

Browse files
committed
refactor: remove main_desktop.dart and add Clang stdlib=libc++ build options to CMakeLists.txt
1 parent 33476e1 commit fc1349a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

example/lib/main_desktop.dart

Lines changed: 0 additions & 8 deletions
This file was deleted.

example/linux/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ function(APPLY_STANDARD_SETTINGS TARGET)
4444
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
4545
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
4646
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()
4752
endfunction()
4853

4954
# Flutter library and tool build rules.

0 commit comments

Comments
 (0)