-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Using Versionless rids instead of custom OSes #33315
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
25 commits
Select commit
Hold shift + click to select a range
564a523
removing from coreclr
Anipik 4721bce
windows_NT -> win from libraries
Anipik cd6d70a
build all conig for libraries
Anipik 50eda63
remove windows_nt from installer
Anipik 7db1d6b
renaming in other files
Anipik bc24e64
file name to lowercase change
Anipik b3e9a30
fixing the build-runtime.cmd failure
Anipik 097b0a9
comments and casing uname casing corrected
Anipik 5ad264a
fixing the mono build
Anipik c4d91b6
using path combine
Anipik efc20ee
add nullable enable
Anipik 6c48db4
Merge branch 'master' into Rid
Anipik b61c1d2
delete uppercase files
Anipik d01205f
replace os string in platform
Anipik ae2973d
fix wasm build
Anipik f347738
Merge branch 'master' into Rid
Anipik f961e0f
iOS -> ios
Anipik 99ccef6
addressing comments
Anipik 6eb7ad3
adding missing dollar sign
Anipik 0b5d7eb
Merge branch 'master' into Rid
Anipik 3df8242
fix performance test
Anipik fd1ac99
Merge branch 'master' into Rid
Anipik 209e617
Merge branch 'master' into Rid
Anipik 35f7e8c
fix formating leg with recent change
Anipik 8879132
Merge branch 'master' into Rid
Anipik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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
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
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
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 |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ if(CLR_CMAKE_HOST_OS STREQUAL Linux OR CLR_CMAKE_HOST_OS STREQUAL Android) | |
| clr_unknown_arch() | ||
| endif() | ||
| endif() | ||
| set(CLR_CMAKE_HOST_OS linux) | ||
| set(CLR_CMAKE_HOST_LINUX 1) | ||
|
|
||
| # Detect Linux ID | ||
|
|
@@ -86,6 +87,7 @@ if(CLR_CMAKE_HOST_OS STREQUAL Darwin) | |
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
| set(CLR_CMAKE_HOST_DARWIN 1) | ||
| set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>") | ||
| set(CLR_CMAKE_HOST_OS osx) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL Darwin) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL iOS) | ||
|
|
@@ -100,24 +102,28 @@ if(CLR_CMAKE_HOST_OS STREQUAL iOS) | |
| else() | ||
| clr_unknown_arch() | ||
| endif() | ||
| set(CLR_CMAKE_HOST_OS ios) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL iOS) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL FreeBSD) | ||
| set(CLR_CMAKE_HOST_UNIX 1) | ||
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
| set(CLR_CMAKE_HOST_FREEBSD 1) | ||
| set(CLR_CMAKE_HOST_OS freebsd) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL FreeBSD) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL OpenBSD) | ||
| set(CLR_CMAKE_HOST_UNIX 1) | ||
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
| set(CLR_CMAKE_HOST_OPENBSD 1) | ||
| set(CLR_CMAKE_HOST_OS openbsd) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL OpenBSD) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL NetBSD) | ||
| set(CLR_CMAKE_HOST_UNIX 1) | ||
| set(CLR_CMAKE_HOST_UNIX_AMD64 1) | ||
| set(CLR_CMAKE_HOST_NETBSD 1) | ||
| set(CLR_CMAKE_HOST_OS netbsd) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL NetBSD) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL SunOS) | ||
|
|
@@ -134,15 +140,17 @@ if(CLR_CMAKE_HOST_OS STREQUAL SunOS) | |
| endif() | ||
|
|
||
| set(CLR_CMAKE_HOST_SUNOS 1) | ||
| set(CLR_CMAKE_HOST_OS sunos) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL SunOS) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL Windows) | ||
| set(CLR_CMAKE_HOST_OS Windows_NT) | ||
| set(CLR_CMAKE_HOST_OS win) | ||
| set(CLR_CMAKE_HOST_WIN32 1) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL Windows) | ||
|
|
||
| if(CLR_CMAKE_HOST_OS STREQUAL Emscripten) | ||
| set(CLR_CMAKE_HOST_ARCH_WASM 1) | ||
| set(CLR_CMAKE_HOST_OS emscripten) | ||
| endif(CLR_CMAKE_HOST_OS STREQUAL Emscripten) | ||
|
|
||
| #-------------------------------------------- | ||
|
|
@@ -224,10 +232,10 @@ if (NOT DEFINED CLR_CMAKE_TARGET_OS OR CLR_CMAKE_TARGET_OS STREQUAL "" ) | |
| set(CLR_CMAKE_TARGET_OS ${CLR_CMAKE_HOST_OS}) | ||
| endif() | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL Linux) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL linux) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_LINUX 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL Linux) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL linux) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL tizen) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
|
|
@@ -247,35 +255,35 @@ if(CLR_CMAKE_TARGET_OS STREQUAL Android) | |
| set(CLR_CMAKE_TARGET_ANDROID 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL Android) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL Darwin) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL osx) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_DARWIN 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL Darwin) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL osx) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL iOS) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL ios) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_IOS 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL iOS) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL ios) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL FreeBSD) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL freebsd) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_FREEBSD 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL FreeBSD) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL freebsd) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL OpenBSD) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL openbsd) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_OPENBSD 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL OpenBSD) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL openbsd) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL NetBSD) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL netbsd) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_NETBSD 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL NetBSD) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL netbsd) | ||
|
|
||
| if(CLR_CMAKE_TARGET_OS STREQUAL SunOS) | ||
| if(CLR_CMAKE_TARGET_OS STREQUAL sunos) | ||
| set(CLR_CMAKE_TARGET_UNIX 1) | ||
| set(CLR_CMAKE_TARGET_SUNOS 1) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL SunOS) | ||
| endif(CLR_CMAKE_TARGET_OS STREQUAL sunos) | ||
|
|
||
| if(CLR_CMAKE_TARGET_UNIX) | ||
| if(CLR_CMAKE_TARGET_ARCH STREQUAL x64) | ||
|
|
@@ -303,7 +311,7 @@ if (CLR_CMAKE_TARGET_OS STREQUAL CLR_CMAKE_HOST_OS) | |
| endif() | ||
| endif() | ||
| else() | ||
| if(NOT (CLR_CMAKE_HOST_OS STREQUAL Windows_NT)) | ||
| if(NOT (CLR_CMAKE_HOST_OS STREQUAL win)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All the other You could change it to |
||
| message(FATAL_ERROR "Invalid host and target os/arch combination. Host OS: ${CLR_CMAKE_HOST_OS}") | ||
| endif() | ||
| if(NOT (CLR_CMAKE_TARGET_LINUX OR CLR_CMAKE_TARGET_ALPINE_LINUX)) | ||
|
|
||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
What is the convention for
CLR_CMAKE_HOST_OS? This line has it lower cased RID, and the very next line has it upped cased human readable?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.
Again, this feels pretty unnatural to use the lower-cased shortened OS names in CMake. The convention in CMake is to use Linux, Windows, etc.