Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Oct 20, 2024
1 parent 6780759 commit b656891
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4
5.8
18 changes: 10 additions & 8 deletions Sources/Fault/Entries/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import ArgumentParser
import BigInt
import Collections
import ArgumentParser
import CoreFoundation // Not automatically imported on Linux
import CoreFoundation // Not automatically imported on Linux
import Defile
import Foundation
import PythonKit
import Yams

let VERSION = "0.7.1"
let VERSION = "0.8.0"

var env = ProcessInfo.processInfo.environment
let iverilogBase = env["FAULT_IVL_BASE"] ?? "/usr/local/lib/ivl"
let iverilogExecutable = env["FAULT_IVERILOG"] ?? env["PYVERILOG_IVERILOG"] ?? "iverilog"
let vvpExecutable = env["FAULT_VVP"] ?? "vvp"
let yosysExecutable = env["FAULT_YOSYS"] ?? "yosys"

_ = [ // Register all RNGs
_ = [ // Register all RNGs
SwiftRNG.registered,
LFSR.registered,
PatternGenerator.registered,
]
_ = [ // Register all TVGens
_ = [ // Register all TVGens
Atalanta.registered,
Quaigh.registered,
PODEM.registered,
Expand All @@ -43,7 +43,8 @@ _ = [ // Register all TVGens

let yosysTest = "'\(yosysExecutable)' -V".sh(silent: true)
if yosysTest != EX_OK {
Stderr.print("Yosys must be installed to PATH on your computer for Fault to work. Fault will now quit.")
Stderr.print(
"Yosys must be installed to PATH on your computer for Fault to work. Fault will now quit.")
exit(EX_UNAVAILABLE)
}

Expand All @@ -56,7 +57,8 @@ let pythonVersions = {
if let pythonPath = env["PYTHONPATH"] {
sys.path.append(pythonPath)
} else {
let pythonPathProcess = "python3 -c \"import sys; print(':'.join(sys.path), end='')\"".shOutput()
let pythonPathProcess = "python3 -c \"import sys; print(':'.join(sys.path), end='')\""
.shOutput()
let pythonPath = pythonPathProcess.output
let pythonPathComponents = pythonPath.components(separatedBy: ":")
for component in pythonPathComponents {
Expand All @@ -70,7 +72,7 @@ let pythonVersions = {
Stderr.print("\(error)")
exit(EX_UNAVAILABLE)
}
}() // Just to check
}() // Just to check

struct Fault: ParsableCommand {
static let configuration = CommandConfiguration(
Expand Down

0 comments on commit b656891

Please sign in to comment.