aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time_windows_amd64.s
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-04-27 16:22:25 -0700
committerIan Lance Taylor <iant@golang.org>2021-04-28 20:17:20 +0000
commitc96fec9036e8b446b7ffefb59d2775b385ec6701 (patch)
treef8a13c168294a2525f160ec292b6d04e0efc9ba7 /src/runtime/time_windows_amd64.s
parentb36596b14f8d3bee586479323c56b5db416a49e5 (diff)
downloadgo-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.s3
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"