From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: cargo-build-system: cargo-build-flags: --cfg=unix in package recipe Date: Tue, 3 Jan 2017 02:10:18 +0100 Message-ID: <20170103021018.64ac3887@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cODcR-0004we-Vf for guix-devel@gnu.org; Mon, 02 Jan 2017 20:10:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cODcO-00017h-Re for guix-devel@gnu.org; Mon, 02 Jan 2017 20:10:27 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:42104) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cODcO-00017F-Kr for guix-devel@gnu.org; Mon, 02 Jan 2017 20:10:24 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org, David Craven Hi, so it seems I got the cargo-build-system to work for large-ish Rust dependency trees now. It still can't pick up transitive dependencies but hey :P However, some of the Rust crates have a "windows" target which fails. For these I'd like to pass "--cfg=unix" and I'd like to put it into the package recipe and not hardcode it into the build system. I saw that there's a "cargo-build-flags" parameter. However, specifying it like (arguments `(#:cargo-build-flags '("--cfg=unix" "--release"))) gives me "invalid keyword argument"... Why?