Skip to content

Commit

Permalink
tweak for PlatformIO platform=native
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Jul 10, 2023
1 parent 24f1ce2 commit 6942d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples_for_PC/PlatformIO_SDL/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
[env:native]
platform = native
build_type = debug
build_flags = -lSDL2
build_flags = -xc++ -std=c++14 -lSDL2
-I/opt/homebrew/include/SDL2 ;SDL2のファイルが見つからない場合はパスを調整
-L/opt/homebrew/lib ;SDL2ライブラリが見つからない場合はパスを調整

[esp32_base]
build_type = debug
Expand Down
2 changes: 1 addition & 1 deletion examples_for_PC/PlatformIO_SDL/src/LGFX_SDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ int main(int, char**)
lgfx::Panel_sdl::sdl_event_handler();
loop();
}
return 1;
return 0;
}
#endif

0 comments on commit 6942d48

Please sign in to comment.