-
Notifications
You must be signed in to change notification settings - Fork 0
fix(dmod_system): enable cross-platform module name lookup when crossplatform mode is active #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d4e3174
Initial plan
Copilot 6a5b17b
Initial plan: add --arch option for cross-platform --list-api
Copilot 020b2de
feat: add --arch option to dmod_loader for cross-platform --list-api
Copilot db77cb8
fix: skip arch check in Dmod_FindModuleFile when crossplatform mode i…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| #================================================================================================================================ | ||
| # Default tools configuration | ||
| #================================================================================================================================ | ||
|
|
||
| # | ||
| # Default configuration options | ||
| # | ||
| set(DMOD_USE_STDLIB ON ) | ||
| set(DMOD_USE_STDIO ON ) | ||
| set(DMOD_USE_ASSERT ON ) | ||
| set(DMOD_USE_PTHREAD ON ) | ||
| set(DMOD_USE_MMAN ON ) | ||
| set(DMOD_BUILD_TESTS ON ) | ||
| set(DMOD_BUILD_EXAMPLES ON ) | ||
| set(DMOD_BUILD_TOOLS ON ) | ||
|
|
||
| # | ||
| # Toolchain configuration | ||
| # | ||
| if(NOT DEFINED COMPILER_PATH) | ||
| set(COMPILER_PATH "") | ||
| endif() | ||
| if(NOT DEFINED CROSS_COMPILE) | ||
| set(CROSS_COMPILE "") | ||
| endif() | ||
|
|
||
|
|
||
|
|
||
| # | ||
| # Toolchain configuration | ||
| # | ||
| if(NOT DEFINED CROSS_COMPILE) | ||
| set(CROSS_COMPILE "") | ||
| endif() | ||
|
|
||
| find_program(GCC ${CROSS_COMPILE}gcc) | ||
| if(NOT GCC) | ||
| message(FATAL_ERROR "GCC compiler not found") | ||
| endif() | ||
|
|
||
| find_program(GXX ${CROSS_COMPILE}g++) | ||
| if(NOT GXX) | ||
| message(FATAL_ERROR "G++ compiler not found") | ||
| endif() | ||
|
|
||
| find_program(LD ${CROSS_COMPILE}ld) | ||
| if(NOT LD) | ||
| message(FATAL_ERROR "Linker not found") | ||
| endif() | ||
|
|
||
| find_program(OBJDUMP ${CROSS_COMPILE}objdump) | ||
| if(NOT OBJDUMP) | ||
| message(FATAL_ERROR "objdump not found") | ||
| endif() | ||
|
|
||
| find_program(OBJCOPY ${CROSS_COMPILE}objcopy) | ||
| if(NOT OBJCOPY) | ||
| message(FATAL_ERROR "objcopy not found") | ||
| endif() | ||
|
|
||
| find_program(AR ${CROSS_COMPILE}ar) | ||
| if(NOT AR) | ||
| message(FATAL_ERROR "ar not found") | ||
| endif() | ||
|
|
||
| find_program(SIZE ${CROSS_COMPILE}size) | ||
| if(NOT SIZE) | ||
| message(FATAL_ERROR "size not found") | ||
| endif() | ||
|
|
||
| # ============================================================================== | ||
| # CMake Configuration | ||
| # ============================================================================== | ||
| set(CMAKE_C_COMPILER "${GCC}" CACHE STRING "C compiler") | ||
| set(CMAKE_CXX_COMPILER "${GXX}" CACHE STRING "C++ compiler") | ||
| set(CMAKE_LINKER "${LD}" CACHE STRING "Linker") | ||
| set(CMAKE_OBJDUMP "${OBJDUMP}" CACHE STRING "Objdump") | ||
| set(CMAKE_OBJCOPY "${OBJCOPY}" CACHE STRING "Objcopy") | ||
| set(CMAKE_SIZE "${SIZE}" CACHE STRING "Size") | ||
| set(CMAKE_AR "${AR}" CACHE STRING "Archiver") | ||
| set(MAKE make CACHE STRING "Make") | ||
| set(MKDIR mkdir CACHE STRING "Mkdir") | ||
| set(RM rm CACHE STRING "Rm") | ||
| set(CMAKE_C_FLAGS "-Wall -Werror -std=c11 ${CPUCONFIG_CFLAGS}") | ||
| set(CMAKE_CXX_FLAGS "-Wall -Werror -std=c++17 ${CPUCONFIG_CXXFLAGS}") | ||
| set(CMAKE_LFLAGS "${CPUCONFIG_LDFLAGS}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WTF?!?!?!?!?!