Skip to content

Changes I needed to get this to build on apple with gcc-15.#120

Open
xtjoeytx wants to merge 1 commit intobeta4from
joey/gcc15-osx
Open

Changes I needed to get this to build on apple with gcc-15.#120
xtjoeytx wants to merge 1 commit intobeta4from
joey/gcc15-osx

Conversation

@xtjoeytx
Copy link
Copy Markdown
Owner

@xtjoeytx xtjoeytx commented Feb 7, 2026

Also needed to run cmake like so:
-DUPNP=OFF -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk

Also needed to run cmake like so:
-DUPNP=OFF -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk
Comment thread cmake/utility.cmake
Comment on lines +94 to +95
elseif(UNIX)
target_compile_definitions(${target} PUBLIC PLATFORM_UNIX)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apple defines both UNIX & APPLE, so fixed ordering

Comment thread server/src/main.cpp

#ifdef __APPLE__
#include <mach-o/dyld.h>
#endif
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required for _NSGetExecutablePath

Comment thread server/CMakeLists.txt
Comment on lines +379 to +381
# set_property(
# TARGET ${TARGET_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS "-fobjc-arc"
# )
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed for Apple + GCC builds, needed for clang build

Comment thread CMakeLists.txt
Comment on lines +119 to +121
if(HOMEBREW_PREFIX)
set(ZLIB_ROOT "${HOMEBREW_PREFIX}/opt/zlib" CACHE PATH "" FORCE)
set(BZIP2_ROOT "${HOMEBREW_PREFIX}/opt/bzip2" CACHE PATH "" FORCE)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likely not needed

Comment thread CMakeLists.txt
Comment on lines +98 to +99
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-stdlib=libstdc++>)
add_link_options($<$<LINK_LANGUAGE:CXX>:-stdlib=libstdc++>)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these were necessary, may not be necessary if gs2lib gets updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant