Skip to content

Commit

Permalink
Merge pull request #763 from hack3ric/riscv64-support
Browse files Browse the repository at this point in the history
Add riscv64 support
  • Loading branch information
bai authored Apr 29, 2024
2 parents f02c934 + dfed208 commit fce3032
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//go:build linux && arm64
//go:build linux && (arm64 || riscv64)
// +build linux,arm64

Check failure on line 2 in core/open_out_log_linux_dup3.go

View workflow job for this annotation

GitHub Actions / Go 1.22.x on Ubuntu

+build lines do not match //go:build condition
// +build linux,riscv64

// Copyright 2017 LinkedIn Corp. Licensed under the Apache License, Version
// 2.0 (the "License"); you may not use this file except in compliance with
Expand All @@ -16,7 +17,7 @@ import (
"syscall"
)

// linux_arm64 doesn't have syscall.Dup2, so use
// linux_arm64 and linux_riscv64 doesn't have syscall.Dup2, so use
// the nearly identical syscall.Dup3 instead
func internalDup2(oldfd uintptr, newfd uintptr) error {
return syscall.Dup3(int(oldfd), int(newfd), 0)
Expand Down

0 comments on commit fce3032

Please sign in to comment.