Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Identify default mingw runtime (mingw builds only).
See #21612 for context. Basically, by setting $Config{libc} to the default runtime (which will be either -lucrt or -lmsvcrt) we enable perl scripts to determine the identity of the default runtime.
- Loading branch information
1 parent
7bb9a11
commit f276fe5
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,15 @@ | ||
/* | ||
Print the default runtime. $Config{libc} | ||
will be set to this specified value. | ||
*/ | ||
#include <stdio.h> | ||
#include <stddef.h> | ||
|
||
int main(void) { | ||
#if defined(_UCRT) | ||
printf("-lucrt\n"); | ||
#else | ||
printf("-lmsvcrt\n"); | ||
#endif | ||
return 0; | ||
} |