Skip to content

Commit

Permalink
[raylib] Fix MinGW build (#18362)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
Pospelove authored Jun 15, 2021
1 parent d955e62 commit 6bbafb2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions ports/raylib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
use-audio USE_AUDIO
)

if(VCPKG_TARGET_IS_MINGW)
set(DEBUG_ENABLE_SANITIZERS OFF)
else()
set(DEBUG_ENABLE_SANITIZERS ON)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand All @@ -41,8 +47,8 @@ vcpkg_configure_cmake(
-DUSE_EXTERNAL_GLFW=OFF # externl glfw3 causes build errors on Windows
${FEATURE_OPTIONS}
OPTIONS_DEBUG
-DENABLE_ASAN=ON
-DENABLE_UBSAN=ON
-DENABLE_ASAN=${DEBUG_ENABLE_SANITIZERS}
-DENABLE_UBSAN=${DEBUG_ENABLE_SANITIZERS}
-DENABLE_MSAN=OFF
OPTIONS_RELEASE
-DENABLE_ASAN=OFF
Expand Down
1 change: 1 addition & 0 deletions ports/raylib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "raylib",
"version-semver": "3.7.0",
"port-version": 1,
"description": "A simple and easy-to-use library to enjoy videogames programming",
"homepage": "https://github.com/raysan5/raylib",
"supports": "!(arm | uwp)",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5430,7 +5430,7 @@
},
"raylib": {
"baseline": "3.7.0",
"port-version": 0
"port-version": 1
},
"rbdl": {
"baseline": "2.6.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/raylib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e27352fbab2a4e815a478265032a4faa60d34060",
"version-semver": "3.7.0",
"port-version": 1
},
{
"git-tree": "197576ef49480a84f0d5a4d153a1d9416b8230fc",
"version-semver": "3.7.0",
Expand Down

0 comments on commit 6bbafb2

Please sign in to comment.