Pass --target in preprocess_file()#99251
Merged
jkoritzinsky merged 1 commit intodotnet:mainfrom Mar 6, 2024
Merged
Conversation
|
Tagging subscribers to this area: @hoyosjs Issue DetailsWithout this patch, cross-compilation for linux-riscv64 from linux-arm64 fails like this: $ uname -m
aarch64
$ ROOTFS_DIR=/crossrootfs/riscv64 src/coreclr/build-runtime.sh --cross --arch riscv64
[ 11%] Building CXX object md/runtime/CMakeFiles/mdruntime_wks.dir/recordpool.cpp.o
In file included from /runtime/src/coreclr/dlls/mscorrc/include.rc:4:
In file included from /runtime/src/coreclr/dlls/mscorrc/mscorrc.rc:7:
In file included from /runtime/src/coreclr/pal/prebuilt/inc/corerror.h:7:
In file included from /runtime/src/coreclr/pal/inc/rt/winerror.h:12:
In file included from /runtime/src/coreclr/pal/inc/rt/palrt.h:136:
/runtime/src/coreclr/pal/inc/pal.h:2764:2: error: PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture
2764 | #error PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture
| ^
1 error generated.
|
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Without this patch, cross-compilation for linux-riscv64 from linux-arm64 fails like this:
and with the patch, coreclr build succeeds.