diff options
| author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-05 15:53:28 -0500 |
|---|---|---|
| committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-05 15:54:12 -0500 |
| commit | 80504b06ad1b2cbca29642306b3463ea86f0a930 (patch) | |
| tree | ed095d02241f172a3780708002ab2bcbfb3bdef1 /libc/test/UnitTest/LibcTest.cpp | |
| parent | 9c82dc6a6ba1f3d75b5547680e0a8532684879c9 (diff) | |
[libc][Obvious] Fix bad macro check on NVPTX tests
Summary:
I forgot to add the `defined()` check on NVPTX.
Diffstat (limited to 'libc/test/UnitTest/LibcTest.cpp')
| -rw-r--r-- | libc/test/UnitTest/LibcTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/UnitTest/LibcTest.cpp b/libc/test/UnitTest/LibcTest.cpp index e1887c459d0d..d5e6fdfd8e0d 100644 --- a/libc/test/UnitTest/LibcTest.cpp +++ b/libc/test/UnitTest/LibcTest.cpp @@ -18,7 +18,7 @@ #elif defined(LIBC_TARGET_ARCH_IS_GPU) #include "src/__support/GPU/utils.h" static long clock() { return __llvm_libc::gpu::fixed_frequency_clock(); } -#if LIBC_TARGET_ARCH_IS_NVPTX +#if defined(LIBC_TARGET_ARCH_IS_NVPTX) uint64_t CLOCKS_PER_SEC = 1000000000UL; #else // The AMDGPU loader needs to initialize this at runtime by querying the driver. |
