[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bf80fc8 11/14: Use env instead of set for the
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bf80fc8 11/14: Use env instead of set for the native Linux build |
Date: |
Sat, 10 Oct 2020 11:07:13 -0400 (EDT) |
branch: master
commit bf80fc8564bdf78aa8226959b87402f1f1080c04
Author: Ilya Sinitsyn <isinitsyn@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use env instead of set for the native Linux build
---
main_cgi.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/main_cgi.cpp b/main_cgi.cpp
index dace41d..fe3f52a 100644
--- a/main_cgi.cpp
+++ b/main_cgi.cpp
@@ -99,7 +99,11 @@ int try_main(int argc, char* argv[])
if(argc == 2 && argv[1] == std::string("--capture"))
{
+# if defined LMI_POSIX
+ int exit_code = std::system("env > settings");
+# else
int exit_code = std::system("set > settings");
+# endif // defined LMI_POSIX
if(EXIT_SUCCESS != exit_code)
{
std::cerr << "Failed to execute 'set' command;";
- [lmi-commits] [lmi] master a6df4f8 04/14: Don't use Wine for the native Linux build, (continued)
- [lmi-commits] [lmi] master a6df4f8 04/14: Don't use Wine for the native Linux build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 44e80a2 03/14: Supress Boost.Regex compilation warning, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master b21f123 01/14: Don't link ws2_32 lib for native Linux build of XML libraries, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master faa2234 09/14: Improve GitHub CI tests build speed, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 711d483 10/14: Disable lmi building with SO attributes for the native CI build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 10256f5 05/14: Use set_toolchain.sh in the coding rules test script, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 628d547 07/14: Fix lmi building step in GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master deabd16 08/14: Add native Linux build variant to GitHub CI workflows, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master b615b7b 14/14: fixup! Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 6164366 02/14: Fix configuring wxPdfDoc under Linux, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master bf80fc8 11/14: Use env instead of set for the native Linux build,
Greg Chicares <=
- [lmi-commits] [lmi] master 86ba7a9 13/14: Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 1ef40dd 06/14: Handle the exit code to avoid the unused result compilation warning, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 4485a27 12/14: Remove the warning message for the native Linux build, Greg Chicares, 2020/10/10