-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add local build for System.Globalization shim #72896
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
aed8b64
Add local build for System.Globalization shim
ec90686
Merge branch 'dotnet:main' into build
smhmhmd f2fa736
Incorporate review feedback
smhmhmd d8dabf2
Fix IlCompilerPackagePath
smhmhmd e548415
Address review feedback
smhmhmd 6075e03
Incorporate review feedback
smhmhmd 5256276
Merge branch 'dotnet:main' into build
smhmhmd 3fcba3d
Address feedback from 08/04
3eba2de
Merge branch 'dotnet:main' into build
smhmhmd 2f440a0
Fix DirectPInvoke for library built by user
9bf52ca
Merge branch 'dotnet:main' into build
smhmhmd de4b4fc
Merge branch 'dotnet:main' into build
smhmhmd e59cc03
Feedback on 08/25: rename static-build, "source_code" and cleanup com…
b51f34c
Merge branch 'dotnet:main' into build
smhmhmd 1acc76f
Merge branch 'dotnet:main' into build
smhmhmd 556dcf3
Merge branch 'dotnet:main' into build
smhmhmd 4a67db0
Feedback on 09/02
ff907cf
Move file includes to previous itemgroup
0a11c50
Move file includes to previous itemgroup
smhmhmd 68eac73
Merge branch 'build' of https://github.com/smhmhmd/runtime into build
smhmhmd 907c322
Merge branch 'dotnet:main' into build
smhmhmd e5c2c51
Update section in compiling.md
smhmhmd 40bf9be
Update src/coreclr/nativeaot/docs/compiling.md
jkotas 5f9e7a7
Update src/coreclr/nativeaot/docs/compiling.md
jkotas e4fdcfa
Update src/coreclr/nativeaot/docs/compiling.md
jkotas 7a96d14
Update src/coreclr/nativeaot/docs/compiling.md
smhmhmd 8323197
Update src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/Microso…
smhmhmd bca6da8
Merge branch 'dotnet:main' into build
smhmhmd 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
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
26 changes: 26 additions & 0 deletions
26
src/native/libs/System.Globalization.Native/local_build.sh
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,26 @@ | ||
#!/bin/sh | ||
|
||
# Licensed to the .NET Foundation under one or more agreements. | ||
# The .NET Foundation licenses this file to you under the MIT license. | ||
# | ||
|
||
# This script is used only for building libSystem.Globalization.Native.a | ||
# in the end-user's computer for NativeAOT purposes (static linking). | ||
# This file is not used during the dotnet runtime build. | ||
|
||
# Currently, only Linux is supported | ||
|
||
SHIM_SOURCE_DIR=$1/native/src | ||
INTERMEDIATE_OUTPUT_PATH=$2 | ||
|
||
if [ -d "$SHIM_SOURCE_DIR" ]; then | ||
LOCAL_SHIM_DIR="$INTERMEDIATE_OUTPUT_PATH"/libs/System.Globalization.Native/build | ||
mkdir -p "$LOCAL_SHIM_DIR" && cd "$LOCAL_SHIM_DIR" | ||
if [ $? -ne 0 ]; then echo "local_build.sh::ERROR: Cannot use local build directory"; exit 1; fi | ||
cmake -S "$SHIM_SOURCE_DIR/libs/System.Globalization.Native/" -DLOCAL_BUILD:STRING=1 -DCLR_CMAKE_TARGET_UNIX:STRING=1 | ||
if [ $? -ne 0 ]; then echo "local_build.sh::ERROR: cmake failed"; exit 1; fi | ||
make -j | ||
if [ $? -ne 0 ]; then echo "local_build.sh::ERROR: Build failed"; exit 1; fi | ||
fi | ||
|
||
exit 0 |
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
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.