diff --git a/.azuredevops/policies/branchClassification.yml b/.azuredevops/policies/branchClassification.yml new file mode 100644 index 00000000..8b0923e2 --- /dev/null +++ b/.azuredevops/policies/branchClassification.yml @@ -0,0 +1,15 @@ +name: branch_classification +description: Branch classification configuration for repository +resource: repository +disabled: false +where: +configuration: + branchClassificationSettings: + defaultClassification: nonproduction + ruleset: + - name: prod-branches + branchNames: + - main + - ms_1.4.4_release + - release + classification: production diff --git a/build/CompilerAndLinker.cmake b/build/CompilerAndLinker.cmake index 9e69cd83..71566799 100644 --- a/build/CompilerAndLinker.cmake +++ b/build/CompilerAndLinker.cmake @@ -68,7 +68,7 @@ endif() #--- General MSVC-like SDL options if(MSVC) list(APPEND COMPILER_SWITCHES /Gd /GS /Zc:forScope /Zc:inline /Zc:wchar_t $<$>:/guard:cf>) - list(APPEND LINKER_SWITCHES /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO) + list(APPEND LINKER_SWITCHES /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO $<$:/OPT:REF,ICF>) if(WINDOWS_STORE) list(APPEND COMPILER_SWITCHES /bigobj) @@ -131,6 +131,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel") list(APPEND COMPILER_SWITCHES /Zc:__cplusplus /Zc:inline /fp:fast /Qdiag-disable:161) elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") list(APPEND COMPILER_SWITCHES /sdl /fp:fast) + list(APPEND LINKER_SWITCHES $<$:/DEBUG:FULL /DEBUGTYPE:CV,FIXUP /OPT:REF,ICF>) if(WINDOWS_STORE) list(APPEND COMPILER_SWITCHES /await)