diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-04-27 16:22:25 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-04-28 20:17:20 +0000 |
commit | c96fec9036e8b446b7ffefb59d2775b385ec6701 (patch) | |
tree | f8a13c168294a2525f160ec292b6d04e0efc9ba7 /src/runtime/time_windows_amd64.s | |
parent | b36596b14f8d3bee586479323c56b5db416a49e5 (diff) | |
download | go-c96fec9036e8b446b7ffefb59d2775b385ec6701.tar.gz go-c96fec9036e8b446b7ffefb59d2775b385ec6701.zip |
runtime: use a single definition of time_now for faketime
Build other definitions with the !faketime build tag.
This makes it easy for us to add new assembly implementations of time.now.
Change-Id: I4e48e41a4a04ab001030e6d1cdd9cebfa0161b0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/314274
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/time_windows_amd64.s')
-rw-r--r-- | src/runtime/time_windows_amd64.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/time_windows_amd64.s b/src/runtime/time_windows_amd64.s index 7d1fcfbcf5..93ab960b06 100644 --- a/src/runtime/time_windows_amd64.s +++ b/src/runtime/time_windows_amd64.s @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !faketime +// +build !faketime + #include "go_asm.h" #include "textflag.h" #include "time_windows.h" |