From 3f504dfb9040ad538524877b63708642cbc668c3 Mon Sep 17 00:00:00 2001 From: David Declerck Date: Mon, 13 May 2024 09:58:20 +0200 Subject: [PATCH] Fix MSVC builds - missing profiling.c --- build_windows/ChangeLog.txt | 4 ++++ build_windows/vs2005/libcob.vcproj | 4 ++++ build_windows/vs2008/libcob.vcproj | 4 ++++ build_windows/vs2010/libcob.vcxproj | 3 ++- build_windows/vs2010/libcob.vcxproj.filters | 5 ++++- build_windows/vs2012/libcob.vcxproj | 3 ++- build_windows/vs2012/libcob.vcxproj.filters | 5 ++++- build_windows/vs2013/libcob.vcxproj | 3 ++- build_windows/vs2013/libcob.vcxproj.filters | 5 ++++- build_windows/vs2015/libcob.vcxproj | 3 ++- build_windows/vs2015/libcob.vcxproj.filters | 5 ++++- build_windows/vs2017/libcob.vcxproj | 3 ++- build_windows/vs2017/libcob.vcxproj.filters | 5 ++++- build_windows/vs2019/libcob.vcxproj | 3 ++- build_windows/vs2019/libcob.vcxproj.filters | 5 ++++- cobc/flag.def | 3 ++- 16 files changed, 50 insertions(+), 13 deletions(-) diff --git a/build_windows/ChangeLog.txt b/build_windows/ChangeLog.txt index 8c8aa20ff..4d2cac6f4 100644 --- a/build_windows/ChangeLog.txt +++ b/build_windows/ChangeLog.txt @@ -1,4 +1,8 @@ +2024-05-13 David Declerck + + * vs20xx/libcob.vcxproj[.filters]: add missing profiling.c + 2023-07-07 Simon Sobisch * general for cobc: include new replace.c diff --git a/build_windows/vs2005/libcob.vcproj b/build_windows/vs2005/libcob.vcproj index 7bb4cdc0f..66d30bfb5 100644 --- a/build_windows/vs2005/libcob.vcproj +++ b/build_windows/vs2005/libcob.vcproj @@ -227,6 +227,10 @@ RelativePath="..\..\libcob\numeric.c" > + + diff --git a/build_windows/vs2008/libcob.vcproj b/build_windows/vs2008/libcob.vcproj index 0a576bdf1..8ad67ba0f 100644 --- a/build_windows/vs2008/libcob.vcproj +++ b/build_windows/vs2008/libcob.vcproj @@ -223,6 +223,10 @@ RelativePath="..\..\libcob\numeric.c" > + + diff --git a/build_windows/vs2010/libcob.vcxproj b/build_windows/vs2010/libcob.vcxproj index 72c6e3458..4f12d3e9b 100644 --- a/build_windows/vs2010/libcob.vcxproj +++ b/build_windows/vs2010/libcob.vcxproj @@ -174,6 +174,7 @@ + @@ -206,4 +207,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2010/libcob.vcxproj.filters b/build_windows/vs2010/libcob.vcxproj.filters index 9cec6aff6..db8ac7d1c 100644 --- a/build_windows/vs2010/libcob.vcxproj.filters +++ b/build_windows/vs2010/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/build_windows/vs2012/libcob.vcxproj b/build_windows/vs2012/libcob.vcxproj index 242128413..77717b2c5 100644 --- a/build_windows/vs2012/libcob.vcxproj +++ b/build_windows/vs2012/libcob.vcxproj @@ -176,6 +176,7 @@ + @@ -208,4 +209,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2012/libcob.vcxproj.filters b/build_windows/vs2012/libcob.vcxproj.filters index 9cec6aff6..db8ac7d1c 100644 --- a/build_windows/vs2012/libcob.vcxproj.filters +++ b/build_windows/vs2012/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/build_windows/vs2013/libcob.vcxproj b/build_windows/vs2013/libcob.vcxproj index 9b4fd514f..bd837d987 100644 --- a/build_windows/vs2013/libcob.vcxproj +++ b/build_windows/vs2013/libcob.vcxproj @@ -177,6 +177,7 @@ + @@ -209,4 +210,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2013/libcob.vcxproj.filters b/build_windows/vs2013/libcob.vcxproj.filters index 9cec6aff6..db8ac7d1c 100644 --- a/build_windows/vs2013/libcob.vcxproj.filters +++ b/build_windows/vs2013/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/build_windows/vs2015/libcob.vcxproj b/build_windows/vs2015/libcob.vcxproj index 2c2fcf9be..fb29d49b3 100644 --- a/build_windows/vs2015/libcob.vcxproj +++ b/build_windows/vs2015/libcob.vcxproj @@ -168,6 +168,7 @@ + @@ -200,4 +201,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2015/libcob.vcxproj.filters b/build_windows/vs2015/libcob.vcxproj.filters index 17fce0745..b13c7c07b 100644 --- a/build_windows/vs2015/libcob.vcxproj.filters +++ b/build_windows/vs2015/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/build_windows/vs2017/libcob.vcxproj b/build_windows/vs2017/libcob.vcxproj index 3e90d7b26..72cca60ca 100644 --- a/build_windows/vs2017/libcob.vcxproj +++ b/build_windows/vs2017/libcob.vcxproj @@ -173,6 +173,7 @@ + @@ -205,4 +206,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2017/libcob.vcxproj.filters b/build_windows/vs2017/libcob.vcxproj.filters index 17fce0745..b13c7c07b 100644 --- a/build_windows/vs2017/libcob.vcxproj.filters +++ b/build_windows/vs2017/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/build_windows/vs2019/libcob.vcxproj b/build_windows/vs2019/libcob.vcxproj index 316a56df8..fe0bc688d 100644 --- a/build_windows/vs2019/libcob.vcxproj +++ b/build_windows/vs2019/libcob.vcxproj @@ -173,6 +173,7 @@ + @@ -205,4 +206,4 @@ - \ No newline at end of file + diff --git a/build_windows/vs2019/libcob.vcxproj.filters b/build_windows/vs2019/libcob.vcxproj.filters index 17fce0745..b13c7c07b 100644 --- a/build_windows/vs2019/libcob.vcxproj.filters +++ b/build_windows/vs2019/libcob.vcxproj.filters @@ -54,6 +54,9 @@ Source Files + + Source Files + @@ -96,4 +99,4 @@ Resource Files - \ No newline at end of file + diff --git a/cobc/flag.def b/cobc/flag.def index 7d40570e7..91315fbe0 100644 --- a/cobc/flag.def +++ b/cobc/flag.def @@ -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"))