From patchwork Sat Jan 27 07:06:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 126049 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp866774ljd; Fri, 26 Jan 2018 23:06:48 -0800 (PST) X-Google-Smtp-Source: AH8x225JtRRJJXjpm7jaox6plgbiCKjoUfdlpP1yLxgVMM5Z/gvup94vGfdfTATa4Q1xU2SMeZLh X-Received: by 2002:a17:902:7d09:: with SMTP id z9-v6mr12331731pll.427.1517036808034; Fri, 26 Jan 2018 23:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517036808; cv=none; d=google.com; s=arc-20160816; b=LIC1UYZsr7DqIMdweJZQGB74Re5gcmcTnLrapfvWBLrTSiKX9hBbtxKKkrjrVvhzC0 K2N2l2Pd2aIZQFWkIg42W8mRppz4EFqxdE+G6BZ3bTso8CC8PcXxGCELgw6Mn4QytfWK VG3OfpWaZmn6WJzcd6QT1A8Jovjn73wPbbOLzPqFYROK2B/rdLaEz3V1qyRirJaXp5JG uL9iDtRnrtdMcLYAaI2htUa/aOO2Kr0pFfX3Z612TYQdDPokwC3SVNkwUpyDAcLo+6hm F/lsZZNx662bJztc/evrJS92TOdMlVVv4FpAQeqPNJzkQIiNwyxkxXhCZobac/9eJfZP 10Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=LpF0gTMjsdKGYSbp6xRh/hwHKA7wOrXdpAWsmLlASCk=; b=jE6HGtN8jAd/d0UN5ReR3a/8N+BtvJP+yEGCxQGNc7UaxInl0P4ixslZbhr6+jd0vR kfwHebI5QMJ0t/AZFziAEf88Vp4viH8+8a5YJLb8a/ywvt0tci0fln2yv8Wl1uB2ChFg FgqAj1eG4kXan3wtk7QdG1iphtNPZOOWd/A54C0oCgMy0auX0RmkE4SqYPejVBj/Tje5 Vi8N8HID7FFJaNVTOWlc61HB9Mfmt3eYd8b7C0l2BpWzQ9kec+W68fn2+5XcwJuN+DrB 1m8ttIdZmWLlMWx1bfyplXbBhP0RjjmxbTVjC8upDxPw2WbdVT+ySs2r/GIhL4Nnsv89 Czjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jTQV4FoW; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s6si4088875pgr.221.2018.01.26.23.06.46; Fri, 26 Jan 2018 23:06:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jTQV4FoW; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C50C1787C0; Sat, 27 Jan 2018 07:06:38 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by mail.openembedded.org (Postfix) with ESMTP id 57ED76612D for ; Sat, 27 Jan 2018 07:06:35 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id 17so151979pfw.11 for ; Fri, 26 Jan 2018 23:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+PTXFYJaWh1Um2uM8GWoUyGpEXL1g1WQbpK56Fd14I8=; b=jTQV4FoW/nY2g71qKWQZgTGS6TA83rorCeZBTbeKeiDliQ3dqIwuZQCiuAWlf+HpBs 7FPBuPiZebmcpLapLBvI9JzdCEur7TzG0cJMw9F7x11phGcViTDURyDjd10HSqnRlwCG x4e+QaloxyLpFDGaWkkRZiqo4x1GUDRz02YXHjvOs1ilYFcQDkK2pI9MgYZMZ2JAzhnz EFuMO+hp0lZ6IOClhChmmnZ5f1W2NmXCbJBQC0k0PBAzREl9y+xhobMjVgmcEWRufKSA 1JdSu6rgSkScSZowx766V3ONqonpgQQfuti0tB5P4zCxeesAs4xIS39Q++EVQXIoBr5V FE2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+PTXFYJaWh1Um2uM8GWoUyGpEXL1g1WQbpK56Fd14I8=; b=HPOCY4zPaKdSaA1Bo23ML7o1vduBNY7qEqTPjfun2E/Qs0CfMkF5wqWE2RTwsEvful fpHlEAGRAWuRuZ3MaOVYjnLLScrnm2gXQXhBYxv8GY0r8RKMhuyznkj8yQ8vD75iG1lc aQr6RQdyzDSVvisk1rVQy84oq9Li5d7NR/64Tl9syUIBkXdztpaLiCvpOmZ8WTuYtlQl XJf/mP11vo9AVqJ8lziUevbp+7ueBau0sRgrT7GQwNNigaiRyQHFd2RmASJ0pJ6a5JfV Kj3H3qxFUpr63Is4T9V2afGe+KdrfV8kgNGBQYQK7W5XjAtMqxI/ex/P/OIPCr2OlEAt +n/w== X-Gm-Message-State: AKwxytcpdz56l0Y1G1XG+IvVRA5gSpMRFRivOwYlBJ9VVSmZQ1RO/C0t 3LGcSMC9nqAkGaMKu4zGjJAy6g== X-Received: by 10.99.131.74 with SMTP id h71mr17057765pge.373.1517036797179; Fri, 26 Jan 2018 23:06:37 -0800 (PST) Received: from localhost.localdomain ([2601:646:8880:466c::a8d6]) by smtp.gmail.com with ESMTPSA id 206sm20360192pfy.71.2018.01.26.23.06.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 23:06:36 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 26 Jan 2018 23:06:26 -0800 Message-Id: <20180127070626.27581-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.1 Subject: [OE-core] [PATCH] meson: Adjust for clang compiler X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Remove hardcoding c/c++ compiler to be gcc alone, its possible to use clang as replacement for cross compilers from meta-clang, therefore set clang/clang++ if TOOLCHAIN = "clang" Signed-off-by: Khem Raj --- meta/classes/meson.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.16.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index 91ac652651..cd3497a802 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass @@ -40,6 +40,11 @@ EXTRA_OEMESON += "${PACKAGECONFIG_CONFARGS}" MESON_CROSS_FILE = "" MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross" +CCOMPILER ?= "gcc" +CXXCOMPILER ?= "g++" +CCOMPILER_toolchain-clang = "clang" +CXXCOMPILER_toolchain-clang = "clang++" + def meson_array(var, d): return "', '".join(d.getVar(var).split()).join(("'", "'")) @@ -49,8 +54,8 @@ do_write_config() { # This needs to be Py to split the args into single-element lists cat >${WORKDIR}/meson.cross <