Skip to content

Commit

Permalink
Remove src/platform
Browse files Browse the repository at this point in the history
  • Loading branch information
blockSkyLook committed Sep 17, 2024
1 parent 909db55 commit de3d701
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 179 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -701,15 +701,14 @@ endif()
include(CheckTrezor)

if(MSVC)
add_definitions("/bigobj /MP /W3 /GS- /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /FIinline_c.h /D__SSE4_1__")
add_definitions("/bigobj /MP /W3 /GS- /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /D__SSE4_1__")
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Dinline=__inline")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10485760")
if(STATIC)
foreach(VAR CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE)
string(REPLACE "/MD" "/MT" ${VAR} "${${VAR}}")
endforeach()
endif()
include_directories(SYSTEM src/platform/msc)
else()
include(TestCXXAcceptsFlag)
message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}")
Expand Down Expand Up @@ -786,7 +785,6 @@ else()
set(WARNINGS "${WARNINGS} -Wno-error=unused-value -Wno-error=unused-but-set-variable")
set(MINGW_FLAG "${MINGW_FLAG} -DWIN32_LEAN_AND_MEAN")
set(Boost_THREADAPI win32)
include_directories(SYSTEM src/platform/mingw)
# mingw doesn't support LTO (multiple definition errors at link time)
set(USE_LTO_DEFAULT false)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,10485760")
Expand Down
33 changes: 0 additions & 33 deletions src/platform/mingw/alloca.h

This file was deleted.

33 changes: 0 additions & 33 deletions src/platform/msc/alloca.h

This file was deleted.

35 changes: 0 additions & 35 deletions src/platform/msc/inline_c.h

This file was deleted.

39 changes: 0 additions & 39 deletions src/platform/msc/stdbool.h

This file was deleted.

36 changes: 0 additions & 36 deletions src/platform/msc/sys/param.h

This file was deleted.

0 comments on commit de3d701

Please sign in to comment.