This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree 5 files changed +15
-4
lines changed
coreclr/hosts/unixcorerun 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ build_coreclr()
64
64
{
65
65
# All set to commence the build
66
66
67
- echo Commencing build of native components for % __BuildArch%/% __BuildType%
67
+ echo Commencing build of native components for $ __BuildArch/ $ __BuildType
68
68
cd $__CMakeSlnDir
69
69
70
70
# Regenerate the CMake solution
@@ -81,7 +81,7 @@ build_coreclr()
81
81
# Build CoreCLR
82
82
83
83
echo Executing make $__UnprocessedBuildArgs
84
- make -j ` nproc` $__UnprocessedBuildArgs
84
+ make install -j ` nproc` $__UnprocessedBuildArgs
85
85
if [ $? != 0 ]; then
86
86
echo Failed to build coreclr components.
87
87
exit 1
@@ -148,6 +148,10 @@ __ToolsDir="$__RootBinDir/tools"
148
148
__TestWorkingDir=" $__RootBinDir /tests/$__BuildArch /$__BuildType "
149
149
__IntermediatesDir=" $__RootBinDir /intermediates/$__BuildArch /$__BuildType "
150
150
151
+ # Specify path to be set for CMAKE_INSTALL_PREFIX.
152
+ # This is where all built CoreClr libraries will copied to.
153
+ export __CMakeBinDir=" $__BinDir "
154
+
151
155
# Switch to clean build mode if the binaries output folder does not exist
152
156
if [ ! -d " $__RootBinDir " ]; then
153
157
__CleanBuild=1
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ target_link_libraries(corerun
15
15
add_dependencies (corerun
16
16
coreclr
17
17
)
18
+
19
+ install (TARGETS corerun DESTINATION .)
Original file line number Diff line number Diff line change @@ -75,4 +75,6 @@ target_link_libraries(mscordaccore ${COREDAC_LIBRARIES})
75
75
76
76
# add the install targets
77
77
install (TARGETS mscordaccore DESTINATION .)
78
- install (FILES ${CMAKE_CURRENT_BINARY_DIR} /$<CONFIG>/mscordaccore.pdb DESTINATION PDB)
78
+ if (WIN32 )
79
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /$<CONFIG>/mscordaccore.pdb DESTINATION PDB)
80
+ endif (WIN32 )
Original file line number Diff line number Diff line change @@ -106,5 +106,7 @@ endif(WIN32)
106
106
107
107
# add the install targets
108
108
install (TARGETS coreclr DESTINATION .)
109
- install (FILES ${CMAKE_CURRENT_BINARY_DIR} /$<CONFIG>/coreclr.pdb DESTINATION PDB)
109
+ if (WIN32 )
110
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /$<CONFIG>/coreclr.pdb DESTINATION PDB)
111
+ endif (WIN32 )
110
112
Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ SET (CLR_DEFINES_DEBUG_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Ch
12
12
SET (CLR_DEFINES_RELEASE_INIT NDEBUG URTBLDENV_FRIENDLY=Retail)
13
13
SET (CLR_DEFINES_RELWITHDEBINFO_INIT NDEBUG URTBLDENV_FRIENDLY=Retail)
14
14
15
+ SET (CMAKE_INSTALL_PREFIX $ENV{__CMakeBinDir})
You can’t perform that action at this time.
0 commit comments