this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Build dSYM files for all binaries

+19 -5
+2
CMakeLists.txt
··· 34 34 35 35 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${IGNORED_WARNINGS}") 36 36 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IGNORED_WARNINGS}") 37 + SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb") 38 + SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -ggdb") 37 39 38 40 enable_language(ASM-ATT) 39 41
+4
cmake/darling_exe.cmake
··· 16 16 use_ld64(${exe}) 17 17 target_link_libraries(${exe} system) 18 18 add_dependencies(${exe} csu) 19 + 20 + if (NOT NO_DSYM) 21 + dsym(${exe}) 22 + endif (NOT NO_DSYM) 19 23 ENDFUNCTION(add_darling_executable) 20 24
+5
cmake/darling_lib.cmake
··· 5 5 6 6 include(use_ld64) 7 7 include(CMakeParseArguments) 8 + include(dsym) 8 9 9 10 FUNCTION(add_darling_library name) 10 11 foreach(f IN LISTS ARGN) ··· 39 40 endif (DYLIB_CURRENT_VERSION) 40 41 41 42 use_ld64(${name}) 43 + 44 + if (NOT NO_DSYM) 45 + dsym(${name}) 46 + endif (NOT NO_DSYM) 42 47 ENDFUNCTION(add_darling_library) 43 48 44 49 FUNCTION(make_fat)
+5 -3
cmake/dsym.cmake
··· 1 1 2 2 function(dsym target) 3 - if (DSYMUTIL_EXE) 3 + if (DSYMUTIL_EXE AND CMAKE_BUILD_TYPE MATCHES DEBUG) 4 4 5 - set(ENV{PATH} "${CMAKE_BINARY_DIR}/src/external/cctools-port/cctools/misc:$ENV{PATH}") # for lipo 5 + add_custom_command(OUTPUT "${target}.dSYM" COMMAND ${CMAKE_COMMAND} -E env 6 + "PATH=${CMAKE_BINARY_DIR}/src/external/cctools-port/cctools/misc:$ENV{PATH}" 7 + "${DSYMUTIL_EXE}" "-flat" "-o" "${target}.dSYM" "$<TARGET_FILE:${target}>") 6 8 7 - add_custom_command(OUTPUT "${target}.dSYM" COMMAND "${DSYMUTIL_EXE}" "-flat" "-o" "${target}.dSYM" "$<TARGET_FILE:${target}>") 8 9 add_custom_target("${target}-dSYM" ALL DEPENDS "${target}" "${target}.dSYM" getuuid lipo) 10 + 9 11 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${target}.dSYM" DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/darling/System/Library/Caches/dsym/files") 10 12 install(DIRECTORY DESTINATION "${CMAKE_INSTALL_PREFIX}/libexec/darling/System/Library/Caches/dsym/uuid") 11 13
+1
platform-include/sys/reason.h
··· 30 30 #define _REASON_H_ 31 31 32 32 #include <stdint.h> 33 + #include <sys/cdefs.h> 33 34 34 35 __BEGIN_DECLS 35 36
+1 -1
src/csu/CMakeLists.txt
··· 19 19 crt1.10.6.S 20 20 ) 21 21 22 - add_darling_library(csu STATIC ${csu_SRCS}) 22 + add_darling_static_library(csu SOURCES ${csu_SRCS}) 23 23 make_fat(csu) 24 24
+1 -1
src/kernel/CMakeLists.txt
··· 13 13 14 14 add_subdirectory(emulation/linux) 15 15 16 - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -fblocks -ggdb") 16 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -fblocks -ffreestanding") 17 17 18 18 # Why -bind_at_load is necessary: 19 19 # I couldn't find something like -Bsymbolic in Apple's ld