Skip to content

Commit

Permalink
Build with gcc and debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg committed Dec 16, 2024
1 parent 7e66bea commit e70bf17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ if(WIN32 AND MSVC)
add_definitions(/MP)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_CXX_COMPILER_ID MATCHES "gcc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

target_compile_options(${PROJECT_NAME} PRIVATE
#-falign-functions
#-faligned-allocation
Expand Down
2 changes: 1 addition & 1 deletion server/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ ! -d "./build-linux" ]; then
mkdir build-linux
fi
cd build-linux
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-9 -DJS_MODULE_VERSION=$VERSION ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=gcc -DJS_MODULE_VERSION=$VERSION ..
cmake --build . --config Release
cd ..

Expand Down

0 comments on commit e70bf17

Please sign in to comment.