Skip to content

Commit 218144e

Browse files
committed
Remove extra spaces and invert the if condition to check whether the OS is AIX
1 parent 5cf4e2b commit 218144e

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

cli/processexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ bool ProcessExecutor::handleRead(int rpipe, unsigned int &result, const std::str
276276

277277
bool ProcessExecutor::checkLoadAverage(size_t nchildren)
278278
{
279-
#if defined(__QNX__) || defined(__HAIKU__) || defined(_AIX)// getloadavg() is unsupported on Qnx, Haiku, AIX.
279+
#if defined(__QNX__) || defined(__HAIKU__) || defined(_AIX) // getloadavg() is unsupported on Qnx, Haiku, AIX.
280280
(void)nchildren;
281281
return true;
282282
#else

test/signal/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"
88
target_compile_options_safe(test-signalhandler -Wno-missing-declarations)
99
target_compile_options_safe(test-signalhandler -Wno-missing-prototypes)
1010
# required for backtrace() to produce function names
11-
if(CMAKE_SYSTEM_NAME MATCHES AIX)
12-
target_link_options(test-signalhandler PRIVATE)
13-
else()
11+
if(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
1412
target_link_options(test-signalhandler PRIVATE -rdynamic)
1513
endif()
1614
endif()
@@ -24,9 +22,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"
2422
target_compile_options_safe(test-stacktrace -Wno-missing-declarations)
2523
target_compile_options_safe(test-stacktrace -Wno-missing-prototypes)
2624
# required for backtrace() to produce function names
27-
if(CMAKE_SYSTEM_NAME MATCHES AIX)
28-
target_link_options(test-signalhandler PRIVATE)
29-
else()
25+
if(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
3026
target_link_options(test-stacktrace PRIVATE -rdynamic)
3127
endif()
3228
endif()

0 commit comments

Comments
 (0)