Skip to content

Commit 6676ab5

Browse files
committed
Port Alpine 3.13 changes
1 parent 15e39c4 commit 6676ab5

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

diagnostics.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ stages:
142142
parameters:
143143
name: Alpine3_13
144144
osGroup: Linux
145-
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210728123842-ddfc481
145+
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85
146146
artifactsTargetPath: bin/Linux-musl.x64.Release
147147
requiresCapPtraceContainer: true
148148
strategy:
@@ -193,7 +193,7 @@ stages:
193193
parameters:
194194
name: Linux_cross
195195
osGroup: Linux
196-
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-14.04-cross-1735d26-20190521133857
196+
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-20210719121212-8a8d3be
197197
crossrootfsDir: '/crossrootfs/arm'
198198
buildAndSkipTest: true
199199
strategy:
@@ -207,7 +207,7 @@ stages:
207207
parameters:
208208
name: Linux_cross64
209209
osGroup: Linux
210-
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921
210+
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be
211211
crossrootfsDir: '/crossrootfs/arm64'
212212
buildAndSkipTest: true
213213
strategy:
@@ -221,7 +221,7 @@ stages:
221221
parameters:
222222
name: Alpine_cross64
223223
osGroup: Linux
224-
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210719121212-b2c2436
224+
dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210923140502-78f7860
225225
crossrootfsDir: '/crossrootfs/arm64'
226226
artifactsTargetPath: bin/Linux-musl.arm64.Release
227227
buildAndSkipTest: true

eng/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ handle_arguments() {
4545
lowerI="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
4646
case "$lowerI" in
4747
architecture|-architecture|-a)
48-
BuildArch="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
48+
__BuildArch="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
4949
__ShiftArgs=1
5050
;;
5151

src/SOS/Strike/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ endif()
218218

219219
list(APPEND SOS_SOURCES ${SOS_SOURCES_ARCH})
220220

221-
if(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_PLATFORM_FREEBSD OR CLR_CMAKE_PLATFORM_NETBSD)
221+
if(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_HOST_FREEBSD OR CLR_CMAKE_HOST_NETBSD OR CLR_CMAKE_HOST_SUNOS)
222222
# Add linker exports file option
223223
set(EXPORTS_LINKER_OPTION -Wl,--version-script=${EXPORTS_FILE})
224-
endif(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_PLATFORM_FREEBSD OR CLR_CMAKE_PLATFORM_NETBSD)
224+
endif(CLR_CMAKE_HOST_LINUX OR CLR_CMAKE_HOST_FREEBSD OR CLR_CMAKE_HOST_NETBSD OR CLR_CMAKE_HOST_SUNOS)
225225

226226
if(CLR_CMAKE_HOST_OSX)
227227
# Add linker exports file option

src/pal/inc/pal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,7 @@ PAL_IsDebuggerPresent(VOID);
284284

285285
#ifndef PAL_STDCPP_COMPAT
286286

287-
#if _WIN64 || _MSC_VER >= 1400
288287
typedef __int64 time_t;
289-
#else
290-
typedef long time_t;
291-
#endif
292288
#define _TIME_T_DEFINED
293289
#endif // !PAL_STDCPP_COMPAT
294290

src/pal/src/configure.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ int main()
10751075
}" HAVE_FULLY_FEATURED_PTHREAD_MUTEXES)
10761076
set(CMAKE_REQUIRED_LIBRARIES)
10771077

1078-
if(NOT CLR_CMAKE_HOST_ARCH_ARM AND NOT CLR_CMAKE_PLATFORM_ARCH_ARM64)
1078+
if(NOT CLR_CMAKE_HOST_ARCH_ARM AND NOT CLR_CMAKE_HOST_ARCH_ARM64)
10791079
set(CMAKE_REQUIRED_LIBRARIES pthread)
10801080
check_cxx_source_runs("
10811081
// This test case verifies the pthread process-shared robust mutex's cross-process abandon detection. The parent process starts

src/pal/src/cruntime/misc.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,12 @@ PAL_time(PAL_time_t *tloc)
207207
PERF_ENTRY(time);
208208
ENTRY( "time( tloc=%p )\n",tloc );
209209

210-
result = time(tloc);
210+
time_t t;
211+
result = time(&t);
212+
if (tloc != NULL)
213+
{
214+
*tloc = t;
215+
}
211216

212217
LOGEXIT( "time returning %#lx\n",result );
213218
PERF_EXIT(time);

0 commit comments

Comments
 (0)