Machine.cc

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry
2026-04-15 19:23:39 -07:00
parent 134cf2cab7
commit b20a9384ef
2 changed files with 11 additions and 1 deletions

View File

@@ -222,7 +222,6 @@ set(STA_SOURCE
util/Error.cc
util/Fuzzy.cc
util/Hash.cc
util/Machine.cc
util/MinMax.cc
util/PatternMatch.cc
util/Report.cc
@@ -239,6 +238,16 @@ set(STA_SOURCE
verilog/VerilogWriter.cc
)
if(APPLE)
list(APPEND STA_SOURCE util/MachineApple.cc)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
list(APPEND STA_SOURCE util/MachineLinux.cc)
elseif(WIN32)
list(APPEND STA_SOURCE util/MachineWin32.cc)
else()
list(APPEND STA_SOURCE util/MachineUnknown.cc)
endif()
# Source files.
set(STA_TCL_FILES
tcl/Init.tcl

View File

@@ -24,6 +24,7 @@
#include "Machine.hh"
#include <cstdarg>
#include <cstdio>
#include <windows.h> // GetSystemInfo