From e766f0b0d09006a450c35ca7888c85062f9aabbe Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Sun, 14 Sep 2014 22:33:48 +0200 Subject: [PATCH] Fix __DATE__ and __TIME__ purification in gcc-wrapper --- pkgs/build-support/gcc-wrapper/gcc-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh index d6e91ebc666a..08c61098809e 100644 --- a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh +++ b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh @@ -87,8 +87,8 @@ extraBefore=() # When enforcing purity, pretend gcc can't find the current date and # time if test "$NIX_ENFORCE_PURITY" = "1"; then - extraAfter+=('-D__DATE__=??? ?? ????' - '-D__TIME__=??:??:??' + extraAfter+=('-D__DATE__="??? ?? ????"' + '-D__TIME__="??:??:??"' -Wno-builtin-macro-redefined) fi