We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c5ce4 commit c75f17dCopy full SHA for c75f17d
CMakeLists.txt
@@ -111,8 +111,14 @@ if(BUILD_FROM_SOURCE)
111
# Build from source
112
#-----------------------------------------------------------------------------
113
set(ninja_executable ${Ninja_SOURCE_DIR}/ninja${CMAKE_EXECUTABLE_SUFFIX})
114
+
115
+ set(bootstrap_command ${PYTHON_EXECUTABLE} configure.py --bootstrap)
116
+ # Explicitly defining _BSD_SOURCE is required to support building the wheel on Alpine. See issue #22
117
+ if(UNIX AND NOT APPLE)
118
+ set(bootstrap_command -E env ${CMAKE_COMMAND} CXXFLAGS=-D_BSD_SOURCE ${bootstrap_command})
119
+ endif()
120
add_custom_command(
- COMMAND ${PYTHON_EXECUTABLE} configure.py --bootstrap
121
+ COMMAND ${bootstrap_command}
122
OUTPUT ${ninja_executable}
123
WORKING_DIRECTORY ${Ninja_SOURCE_DIR}
124
)
0 commit comments