File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed
Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 7474 if : matrix.os == 'ubuntu-latest'
7575 run : |
7676 sudo apt-get update
77- sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
77+ sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libc++-dev libc++abi-dev
7878
7979 - name : Enable Linux desktop
8080 if : matrix.os == 'ubuntu-latest'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class _FilePickerDemoState extends State<FilePickerDemo> {
7979 _resetState ();
8080
8181 try {
82- pickedFiles = ( await FilePicker .platform.pickFiles (
82+ final result = await FilePicker .platform.pickFiles (
8383 type: _pickingType,
8484 allowMultiple: _multiPick,
8585 onFileLoading: (FilePickerStatus status) => setState (() {
@@ -92,8 +92,9 @@ class _FilePickerDemoState extends State<FilePickerDemo> {
9292 initialDirectory: _initialDirectoryController.text,
9393 lockParentWindow: _lockParentWindow,
9494 withData: true ,
95- ))
96- ? .files;
95+ );
96+ printInDebug ("pickedFiles: $result " );
97+ pickedFiles = result? .files;
9798 hasUserAborted = pickedFiles == null ;
9899 } on PlatformException catch (e) {
99100 _logException ('Unsupported operation: $e ' );
Original file line number Diff line number Diff 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 ()
4752endfunction ()
4853
4954# Flutter library and tool build rules.
You can’t perform that action at this time.
0 commit comments