annotate win/lwlib.vcxproj @ 577:e49d24f4a9a5

Correct bug in the object file output code leading to stack corruption It turns out leaving a pointer to a stack allocated temporary in a persistent data structure is not conducive to correct program operation. Undo the export check setup in the object file output sequence so a pointer to stack allocated memory is not left hanging when the function returns. This seems to correct at least one mysterious crash bug, and possibly others. Thanks to Boisy Pitre for reporting the crash bug that led to this discovery, as well as a previous crash bug that likely has the same root cause. Additional thanks to Ciaran Anscomb whose debugger wielding wizardry revealed the exact location of this particular bit of unbrilliance.
author William Astle <lost@l-w.ca>
date Sat, 03 Aug 2024 14:30:06 -0600
parents 4130ffdeb5c8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
361
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
2 <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
3 <ItemGroup Label="ProjectConfigurations">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
4 <ProjectConfiguration Include="Debug|Win32">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
5 <Configuration>Debug</Configuration>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
6 <Platform>Win32</Platform>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
7 </ProjectConfiguration>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
8 <ProjectConfiguration Include="Release|Win32">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
9 <Configuration>Release</Configuration>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
10 <Platform>Win32</Platform>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
11 </ProjectConfiguration>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
12 </ItemGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
13 <ItemGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
14 <ClCompile Include="..\lwlib\lw_alloc.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
15 <ClCompile Include="..\lwlib\lw_cmdline.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
16 <ClCompile Include="..\lwlib\lw_error.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
17 <ClCompile Include="..\lwlib\lw_expr.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
18 <ClCompile Include="..\lwlib\lw_free.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
19 <ClCompile Include="..\lwlib\lw_realloc.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
20 <ClCompile Include="..\lwlib\lw_stack.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
21 <ClCompile Include="..\lwlib\lw_string.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
22 <ClCompile Include="..\lwlib\lw_stringlist.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
23 <ClCompile Include="..\lwlib\lw_win.c" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
24 </ItemGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
25 <ItemGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
26 <ClInclude Include="..\lwlib\lw_alloc.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
27 <ClInclude Include="..\lwlib\lw_cmdline.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
28 <ClInclude Include="..\lwlib\lw_error.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
29 <ClInclude Include="..\lwlib\lw_expr.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
30 <ClInclude Include="..\lwlib\lw_stack.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
31 <ClInclude Include="..\lwlib\lw_string.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
32 <ClInclude Include="..\lwlib\lw_stringlist.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
33 <ClInclude Include="..\lwlib\lw_version.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
34 <ClInclude Include="..\lwlib\lw_win.h" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
35 </ItemGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
36 <PropertyGroup Label="Globals">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
37 <ProjectGuid>{93A52E3F-D19D-4A1A-8B8F-15270BD3D0E2}</ProjectGuid>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
38 <Keyword>Win32Proj</Keyword>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
39 <RootNamespace>lwlib</RootNamespace>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
40 </PropertyGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
41 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
43 <ConfigurationType>StaticLibrary</ConfigurationType>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
44 <UseDebugLibraries>true</UseDebugLibraries>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
45 <PlatformToolset>v120</PlatformToolset>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
46 <CharacterSet>Unicode</CharacterSet>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
47 </PropertyGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
48 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
49 <ConfigurationType>StaticLibrary</ConfigurationType>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
50 <UseDebugLibraries>false</UseDebugLibraries>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
51 <PlatformToolset>v120</PlatformToolset>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
52 <WholeProgramOptimization>true</WholeProgramOptimization>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
53 <CharacterSet>Unicode</CharacterSet>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
54 </PropertyGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
55 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
56 <ImportGroup Label="ExtensionSettings">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
57 </ImportGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
58 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
60 </ImportGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
61 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
62 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
63 </ImportGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
64 <PropertyGroup Label="UserMacros" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
65 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
66 <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
67 <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
68 </PropertyGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
70 <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
71 <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
72 </PropertyGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
73 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
74 <ClCompile>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
75 <PrecompiledHeader>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
76 </PrecompiledHeader>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
77 <WarningLevel>Level3</WarningLevel>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
78 <Optimization>Disabled</Optimization>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
79 <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
80 </ClCompile>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
81 <Link>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
82 <SubSystem>Windows</SubSystem>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
83 <GenerateDebugInformation>true</GenerateDebugInformation>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
84 </Link>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
85 </ItemDefinitionGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
86 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
87 <ClCompile>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
88 <WarningLevel>Level3</WarningLevel>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
89 <PrecompiledHeader>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
90 </PrecompiledHeader>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
91 <Optimization>MaxSpeed</Optimization>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
92 <FunctionLevelLinking>true</FunctionLevelLinking>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
93 <IntrinsicFunctions>true</IntrinsicFunctions>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
94 <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
95 </ClCompile>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
96 <Link>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
97 <SubSystem>Windows</SubSystem>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
98 <GenerateDebugInformation>true</GenerateDebugInformation>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
99 <EnableCOMDATFolding>true</EnableCOMDATFolding>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
100 <OptimizeReferences>true</OptimizeReferences>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
101 </Link>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
102 </ItemDefinitionGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
103 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
104 <ImportGroup Label="ExtensionTargets">
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
105 </ImportGroup>
4130ffdeb5c8 Add contributed support for building with Microsoft's compiler
William Astle <lost@l-w.ca>
parents:
diff changeset
106 </Project>