Fix cross-compile definitions to allow asan to be used in the first place.

pull/881/head
Mooneer Salem 2025-05-13 15:09:18 -07:00
parent 1999bc58fa
commit 73cd6f49f7
3 changed files with 9 additions and 6 deletions

View File

@ -118,6 +118,9 @@ set( _windlls
# Filter Python DLLs as they're already included via install() # Filter Python DLLs as they're already included via install()
python312.dll python312.dll
# Additional DLLs needed by Address Sanitizer
api-ms-win-core-synch-l1-2-0.dll
) )
list(REMOVE_ITEM _deps ${_windlls}) list(REMOVE_ITEM _deps ${_windlls})

View File

@ -11,9 +11,9 @@ set(CMAKE_AR ${triple}-ar)
set(CMAKE_RANLIB ${triple}-ranlib) set(CMAKE_RANLIB ${triple}-ranlib)
set(CMAKE_RC_COMPILER ${triple}-windres) set(CMAKE_RC_COMPILER ${triple}-windres)
set(CMAKE_C_FLAGS "-Wno-unused-command-line-argument -gcodeview") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-command-line-argument -gcodeview")
set(CMAKE_CXX_FLAGS "-Wno-unused-command-line-argument -gcodeview") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument -gcodeview")
set(CMAKE_EXE_LINKER_FLAGS -Wl,--pdb=) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--pdb=")
# For make package use. # For make package use.
set(CMAKE_OBJDUMP ${triple}-objdump) set(CMAKE_OBJDUMP ${triple}-objdump)

View File

@ -12,9 +12,9 @@ set(CMAKE_AR ${triple}-ar)
set(CMAKE_RANLIB ${triple}-ranlib) set(CMAKE_RANLIB ${triple}-ranlib)
set(CMAKE_RC_COMPILER ${triple}-windres) set(CMAKE_RC_COMPILER ${triple}-windres)
set(CMAKE_C_FLAGS "-Wno-unused-command-line-argument -gcodeview") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-command-line-argument -gcodeview")
set(CMAKE_CXX_FLAGS "-Wno-unused-command-line-argument -gcodeview") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument -gcodeview")
set(CMAKE_EXE_LINKER_FLAGS -Wl,--pdb=) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--pdb=")
# For make package use. # For make package use.
set(CMAKE_OBJDUMP ${triple}-objdump) set(CMAKE_OBJDUMP ${triple}-objdump)