• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).


Commit MetaInfo

修订版54a8436cdccb49c8ffe6c65c7eb955b1967e6df8 (tree)
时间2020-11-16 05:31:10
作者DoomJoshuaBoy
CommiterDoomJoshuaBoy

Log Message

Fixed GME compile issue for GCC 10 or later

更改概述

差异

diff -r 7a4a87002864 -r 54a8436cdccb game-music-emu/CMakeLists.txt
--- a/game-music-emu/CMakeLists.txt Sun Nov 15 08:33:28 2020 -0500
+++ b/game-music-emu/CMakeLists.txt Mon Nov 16 07:31:10 2020 +1100
@@ -83,8 +83,9 @@
8383 set (ENABLE_VISIBILITY OFF)
8484 if (__LIBGME_TEST_VISIBILITY)
8585 # get the gcc version
86+ # [JS] This fixes the issue for GCC 10 or later
8687 exec_program(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)
87- string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
88+ string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" _gcc_version "${_gcc_version_info}")
8889
8990 # gcc <4.1 had poor support for symbol visibility
9091 if ((${_gcc_version} VERSION_GREATER "4.1") OR (${_gcc_version} VERSION_EQUAL "4.1"))