Skip to content

Commit f65d71b

Browse files
committed
Add exception specification to build flags
1 parent 7775924 commit f65d71b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

build.ps1

+6-5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ try {
3636
'/Zc:__cplusplus'
3737
'/permissive-'
3838
'/MD',
39+
'/EHa',
3940
'/D', 'WIN32_LEAN_AND_MEAN=1',
4041
'/D', 'NOMINMAX=1',
4142
'/I', "$cwd/third-party/OpenXR-SDK-Source/src/common",
@@ -59,12 +60,12 @@ try {
5960
$Arch = $Env:VSCMD_ARG_TGT_ARCH
6061
Write-Host "Using version '$Version' and architecture '$Arch' for metadata"
6162
$base = (Get-Content $cwd/version.in.rc) `
62-
-replace '@VER_FILEVERSION_STR@',$Version `
63-
-replace '@VER_FILEVERSION@',($Version -Replace '\.',',') `
64-
-replace '@FILE_DESCRIPTION@',"OpenXR-Tracing ${Arch} ($compiler)"
65-
$base -replace '@ORIGINAL_FILENAME@','XR_APILAYER_FREDEMMOTT_OXRTracing.dll' | Set-Content $cwd/gen/version.rc
63+
-replace '@VER_FILEVERSION_STR@', $Version `
64+
-replace '@VER_FILEVERSION@', ($Version -Replace '\.', ',') `
65+
-replace '@FILE_DESCRIPTION@', "OpenXR-Tracing ${Arch} ($compiler)"
66+
$base -replace '@ORIGINAL_FILENAME@', 'XR_APILAYER_FREDEMMOTT_OXRTracing.dll' | Set-Content $cwd/gen/version.rc
6667
rc.exe /nologo /fo $cwd/out/version.res $cwd/gen/version.rc
67-
$base -replace '@ORIGINAL_FILENAME@','XR_APILAYER_FREDEMMOTT_OXRTracing_Alternate.dll' | Set-Content $cwd/gen/version-alternate.rc
68+
$base -replace '@ORIGINAL_FILENAME@', 'XR_APILAYER_FREDEMMOTT_OXRTracing_Alternate.dll' | Set-Content $cwd/gen/version-alternate.rc
6869
rc.exe /nologo /fo $cwd/out/version-alternate.res $cwd/gen/version-alternate.rc
6970

7071
$objs = $sources | % { $_ -replace '^.+/([^/]+).cpp', '$1.obj' }

0 commit comments

Comments
 (0)