X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=bQmA7T3OoaJeu/eR F/56MLlu2TTk3WxU9JdaEG3sZeRfuLHVxYbXgs/WDW2JPU4DWyCYlx0Fgg5x6ROt 4YrvGotJL5Ej4hDsQJ53F1h/+ddf3VUvXz6Grvl0RVa8PVIMMOLPaLOPSbMNmTHd TKZmxsRph+DvQkn5go12d4R2yCM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=0vvgrN32BPF0Z/sV2Hltdd OFBIU=; b=dd0RGzWDrlmUfs9l83InFCupxJJ63mlQqT7oTzmpfZb6lj0FLZKLFt 7jdsEAbtoIKsTlzS2ut/8xLxy+CJY+4JoNHYTJPZ3L4FqrM8dLke8b2qfNhGr2uE hDPbp3tcrMbRPXhl3bWtXK3iS5DRq54vLRkEkJ54YRT1CopLIPc4U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:258af4b, H*f:sk:258af4b, H*MI:sk:258af4b, you! X-HELO: limerock03.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: Deterministic builds To: cygwin AT cygwin DOT com References: <258af4b4-e1f0-171c-4b94-772603038fde AT cornell DOT edu> From: Ken Brown Message-ID: Date: Thu, 5 May 2016 13:59:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <258af4b4-e1f0-171c-4b94-772603038fde@cornell.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-IsSubscribed: yes On 5/4/2016 1:39 PM, Ken Brown wrote: > On 5/4/2016 1:21 PM, Ismail Donmez wrote: >> You can easily disable this feature: >> >> latte ~ > gcc -Wl,--no-insert-timestamp hello.c >> latte ~ > objdump -p a.exe | grep Time/Date >> Time/Date Thu Jan 1 03:31:53 1970 >> latte ~ > gcc -Wl,--no-insert-timestamp hello.c >> latte ~ > objdump -p a.exe | grep Time/Date >> Time/Date Thu Jan 1 03:31:53 1970 > > Thank you! That's exactly what I was looking for. Just for the record, in case anyone else finds this useful, Ismail's suggestion did indeed produce deterministic builds in my setup. I built a large project with about 150 executables, changed a few source files, removed the build directory, rebuilt, and found that only the (expected) few executables changed. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple