Skip to content

Commit

Permalink
Fix MSVC builds - missing profiling.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed May 13, 2024
1 parent 5ba97ae commit f47a5dc
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 13 deletions.
4 changes: 4 additions & 0 deletions build_windows/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

2024-05-13 David Declerck <[email protected]>

* general for libcob: add missing profiling.c

2023-07-07 Simon Sobisch <[email protected]>

* general for cobc: include new replace.c
Expand Down
1 change: 1 addition & 0 deletions build_windows/ocide/libcob.dll.cpj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<FILE NAME="..\..\libcob\mlio.c" TITLE="mlio.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\move.c" TITLE="move.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\numeric.c" TITLE="numeric.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\profiling.c" TITLE="profiling.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\reportio.c" TITLE="reportio.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\screenio.c" TITLE="screenio.c" CLEAN="0"/>
<FILE NAME="..\..\libcob\strings.c" TITLE="strings.c" CLEAN="0"/>
Expand Down
4 changes: 4 additions & 0 deletions build_windows/vs2005/libcob.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
RelativePath="..\..\libcob\numeric.c"
>
</File>
<File
RelativePath="..\..\libcob\profiling.c"
>
</File>
<File
RelativePath="..\..\libcob\reportio.c"
>
Expand Down
4 changes: 4 additions & 0 deletions build_windows/vs2008/libcob.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@
RelativePath="..\..\libcob\numeric.c"
>
</File>
<File
RelativePath="..\..\libcob\profiling.c"
>
</File>
<File
RelativePath="..\..\libcob\reportio.c"
>
Expand Down
3 changes: 2 additions & 1 deletion build_windows/vs2010/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -206,4 +207,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2010/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion build_windows/vs2012/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -208,4 +209,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2012/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion build_windows/vs2013/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -209,4 +210,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2013/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion build_windows/vs2015/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -200,4 +201,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2015/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion build_windows/vs2017/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -205,4 +206,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2017/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion build_windows/vs2019/libcob.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<ClCompile Include="..\..\libcob\mlio.c" />
<ClCompile Include="..\..\libcob\move.c" />
<ClCompile Include="..\..\libcob\numeric.c" />
<ClCompile Include="..\..\libcob\profiling.c" />
<ClCompile Include="..\..\libcob\reportio.c" />
<ClCompile Include="..\..\libcob\screenio.c" />
<ClCompile Include="..\..\libcob\strings.c" />
Expand Down Expand Up @@ -205,4 +206,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 4 additions & 1 deletion build_windows/vs2019/libcob.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<ClCompile Include="..\..\libcob\mlio.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libcob\profiling.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\config.h">
Expand Down Expand Up @@ -96,4 +99,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion cobc/flag.def
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ CB_FLAG (cb_flag_winmain, COB_SHOW, "winmain",

#ifdef HAVE_ATTRIBUTE_CONSTRUCTOR
CB_FLAG_ON (cb_flag_use_constructor, 1, "use-constructor",
_(" -fuse-constructor generate internal one-time code via constructor"))
#else
CB_FLAG (cb_flag_use_constructor, 0, "use-constructor",
#endif
_(" -fuse-constructor generate internal one-time code via constructor"))
#endif

CB_FLAG (cb_flag_computed_goto, 0, "computed-goto",
_(" -fcomputed-goto generate computed goto C statements"))
Expand Down

0 comments on commit f47a5dc

Please sign in to comment.