Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Aug 20, 2020
1 parent 001cbe5 commit d93bac2
Show file tree
Hide file tree
Showing 111 changed files with 5,485 additions and 968 deletions.
274 changes: 1 addition & 273 deletions ReadMe.md

Large diffs are not rendered by default.

274 changes: 1 addition & 273 deletions ReadMe.osc.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/LTL_Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define LTLVersion1 4
#define LTLVersion2 1
#define LTLVersion3 1
#define LTLVersion4 0
#define LTLVersion4 1

#endif

3 changes: 1 addition & 2 deletions src/14.0.23918/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
3 changes: 1 addition & 2 deletions src/14.0.24210/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
10 changes: 8 additions & 2 deletions src/14.0.24225/lib/x64/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.0.24225\lib\x64\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvars64.bat"


::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\_cpu_disp_.obj
Expand Down Expand Up @@ -40,7 +46,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\loadcfg.obj

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\ucrt_detection.obj
Expand Down
10 changes: 8 additions & 2 deletions src/14.0.24225/lib/x86/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.0.24225\lib\x86\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvarsx86_amd64.bat"



Expand Down Expand Up @@ -58,7 +64,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\loadcfg.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\ucrt_detection.obj
Expand Down
3 changes: 1 addition & 2 deletions src/14.0.24225/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
11 changes: 9 additions & 2 deletions src/14.0.24231/lib/arm/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ set libfile=%~dp0..\..\..\..\VC\14.0.24231\lib\arm\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvars64.bat"

::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\_cpu_disp_.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\_convert_.obj
Expand Down Expand Up @@ -33,7 +40,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\guard_support.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\loadcfg.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\arm\ucrt_detection.obj
Expand Down
10 changes: 8 additions & 2 deletions src/14.0.24231/lib/x64/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.0.24231\lib\x64\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvars64.bat"


::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\_cpu_disp_.obj
Expand Down Expand Up @@ -40,7 +46,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\loadcfg.obj

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\ucrt_detection.obj
Expand Down
11 changes: 9 additions & 2 deletions src/14.0.24231/lib/x86/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ set libfile=%~dp0..\..\..\..\VC\14.0.24231\lib\x86\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)


@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvarsx86_amd64.bat"



Expand Down Expand Up @@ -58,7 +65,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\loadcfg.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\ucrt_detection.obj
Expand Down
3 changes: 1 addition & 2 deletions src/14.0.24231/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
3 changes: 1 addition & 2 deletions src/14.10.25017/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
3 changes: 1 addition & 2 deletions src/14.11.25503/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
10 changes: 8 additions & 2 deletions src/14.12.25827/lib/x64/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.12.25827\lib\x64\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvars64.bat"


::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\_cpu_disp_.obj
Expand Down Expand Up @@ -44,7 +50,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\loadcfg.obj

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\ucrt_detection.obj
Expand Down
10 changes: 8 additions & 2 deletions src/14.12.25827/lib/x86/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.12.25827\lib\x86\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvarsx86_amd64.bat"


::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\_cpu_disp_.obj
Expand Down Expand Up @@ -55,7 +61,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\loadcfg.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\x86\ucrt_detection.obj
Expand Down
3 changes: 1 addition & 2 deletions src/14.12.25827/vcruntime/exe_common.inl
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,12 @@ static __declspec(noinline) int __cdecl __scrt_common_main_seh() throw()

// If this module has any thread-local destructors, register the
// callback function with the Unified CRT to run on exit.
#ifndef __Build_LTL //无法正确实现_register_thread_local_exe_atexit_callback,反正进程都要退出了,thread-local destructors不调关系也不大。
_tls_callback_type const * const tls_dtor_callback = __scrt_get_dyn_tls_dtor_callback();
if (*tls_dtor_callback != nullptr && __scrt_is_nonwritable_in_current_image(tls_dtor_callback))
{
_register_thread_local_exe_atexit_callback(*tls_dtor_callback);
}
#endif

//
// Initialization is complete; invoke main...
//
Expand Down
10 changes: 8 additions & 2 deletions src/14.13.26128/lib/x64/msvcrt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ set libfile=%~dp0..\..\..\..\VC\14.13.26128\lib\x64\vc.lib

copy "%~dp0msvcrt.lib" "%libfile%" /y

set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" )

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof )

for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i)

@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvars64.bat"


::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\_cpu_disp_.obj
Expand Down Expand Up @@ -44,7 +50,7 @@ lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_11033
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\loadcfg.obj

lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\pesect.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
::lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_dtor.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\dyn_tls_init.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\matherr_detection.obj
lib "%libfile%" /remove:f:\binaries\Intermediate\vctools\msvcrt.nativeproj_110336922\objr\amd64\ucrt_detection.obj
Expand Down
Loading

0 comments on commit d93bac2

Please sign in to comment.