Skip to content

Commit

Permalink
chore(core): more concise on build constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo committed Nov 6, 2024
1 parent 8690c58 commit 46e1bf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
6 changes: 2 additions & 4 deletions core/open_out_log_unix.go → core/open_out_log_dup2_unix.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//go:build !windows && !(linux && arm64) && !(linux && loong64)
// +build !windows
// +build !linux !arm64
// +build !linux !loong64
//go:build !arm64 && !loong64 && !riscv64
// +build !arm64,!loong64,!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 Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//go:build linux && (arm64 || riscv64)
// +build linux
// +build arm64 riscv64
//go:build arm64 || riscv64 || loong64
// +build arm64 riscv64 loong64

// 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 @@ -17,7 +16,7 @@ import (
"syscall"
)

// linux_arm64 and linux_riscv64 doesn't have syscall.Dup2, so use
// linux/arm64, linux/riscv64, linux/loong64 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
23 changes: 0 additions & 23 deletions core/open_out_log_linux_loong64.go

This file was deleted.

0 comments on commit 46e1bf7

Please sign in to comment.