Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
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
8 changes: 4 additions & 4 deletions engine/utils/process/utils.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "utils/process/utils.h"
#include "utils/logging_utils.h"

#if defined(__APPLE__) || defined(__linux__)
extern char **environ; // environment variables
#endif

namespace cortex::process {

std::string ConstructWindowsCommandLine(const std::vector<std::string>& args) {
Expand Down Expand Up @@ -81,11 +85,7 @@ pid_t SpawnProcess(const std::vector<std::string>& command) {
NULL, // file actions
NULL, // spawn attributes
argv.data(), // argument vector
#if defined(__linux__)
environ // environment (inherit)
#else
NULL
#endif
);

if (spawn_result != 0) {
Expand Down
Loading