Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MSVC builds - missing profiling.c #144

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
9 changes: 7 additions & 2 deletions cobc/flag.def
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,16 @@ CB_FLAG (cb_flag_winmain, COB_SHOW, "winmain",
#undef COB_SHOW

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

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