[PATCH] D136717: [clang] Move getenv call for SOURCE_DATE_EPOCH out of frontend NFC
Tom Stellard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 24 12:08:30 PST 2023
tstellar added inline comments.
================
Comment at: clang/test/Driver/SOURCE_DATE_EPOCH.c:2
+// RUN: %clang -E %s -### 2>&1 | FileCheck %s -check-prefix=NO_EPOCH
+// NO_EPOCH-NOT: "-source-date-epoch"
+
----------------
Hi @benlangmuir, this test fails in our build environment, because we have the SOURCE_DATE_EPOCH env variable set globally. Is there any way to update the test to handle this scenario?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136717/new/
https://reviews.llvm.org/D136717
More information about the cfe-commits
mailing list