From patchwork Thu Apr 7 21:47:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Hilyard X-Patchwork-Id: 109440 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12D91A050C; Thu, 7 Apr 2022 23:47:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D734341145; Thu, 7 Apr 2022 23:47:30 +0200 (CEST) Received: from mail-pl1-f226.google.com (mail-pl1-f226.google.com [209.85.214.226]) by mails.dpdk.org (Postfix) with ESMTP id D27A740689 for ; Thu, 7 Apr 2022 23:47:28 +0200 (CEST) Received: by mail-pl1-f226.google.com with SMTP id o10so6216318ple.7 for ; Thu, 07 Apr 2022 14:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O8r1cZRzCIdnsQSIBJtzWEqrHdQBq1DtnMFodCK3R88=; b=AdeQ+0VBOw/wfLt75y6bjTk82sImQLbEtEw+cTh04ittQAGmiMLbeXcgQZqNxI2Y8O OWEv8jXP1Xwb5GL5u63k83SW7U5Ug5akSJfv9ETgLCKj+SNzZqaDXsJoHVeKGuWWu+G9 Fae6O1c/t2DFVVdnlBl5Ik7bTwGP6wAmeuuhM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O8r1cZRzCIdnsQSIBJtzWEqrHdQBq1DtnMFodCK3R88=; b=attRHIzsrcgIca5eN5hLmCYMrfUXMEGMwQn+QrrQgnP2748MXv9gpMIVOBXB1fHHLY gHti7v4UbjUBNlVbEa90HlHu9WFjwT87gLZOB4ge/yp7EIHpxYtcQGSbvhA5XjTbniIg o97y7tT1yCU0tdyqP1w34mVjjGuorrkLjJS+Uu8n/tISV4WWrQWxeWnIdy1+uV/yPwp0 I/8kM1gEZJ+Gp00ch4HyPR6SPtaBSlTChZ3HJ+8JUfX0JkofrUXs/UGTI1XlkzZicAnK s1T9wqVvPpC5ly2p5lSwxGCvDLzFF4BB0jbEtdWJG2MkiZ0JwKXH+TUXmev44HoIC2wF JoBQ== X-Gm-Message-State: AOAM530CP5a7WUl2pxzVceEx2pqoKlORkQMfOJgBoyytX6EoKbiMsyMk opEfmFiRbtJfwEpzSIQ2eJ1v1QttrDfGZUAjYxLt+J1+q/l7GxdR9G+6WZ3oD+CJ0g== X-Google-Smtp-Source: ABdhPJzAeRIiQo86w7hZDNv9a/o5o1nlzchTqiS1UsxNh4/Pl0htbF7mq40jkuv6CaF4N5r+hdyLtOl8mzPq X-Received: by 2002:a17:903:244d:b0:154:3772:6b32 with SMTP id l13-20020a170903244d00b0015437726b32mr15896593pls.70.1649368048037; Thu, 07 Apr 2022 14:47:28 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id e3-20020a170903240300b0014faa5e5fd1sm841866plo.63.2022.04.07.14.47.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Apr 2022 14:47:28 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::105d]) by postal.iol.unh.edu (Postfix) with ESMTP id 36DB16051839; Thu, 7 Apr 2022 17:47:27 -0400 (EDT) From: ohilyard@iol.unh.edu To: dev@dpdk.org Cc: Honnappa.Nagarahalli@arm.com, thomas@monjalon.net, Owen Hilyard Subject: [PATCH v1 1/4] app/test-pmd-api: Add C++ Compiler Date: Thu, 7 Apr 2022 17:47:05 -0400 Message-Id: <20220407214707.29730-2-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220407214707.29730-1-ohilyard@iol.unh.edu> References: <20220407214707.29730-1-ohilyard@iol.unh.edu> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Owen Hilyard Adds a C++ compiler to the project, which is currently enabled by default for ease of testing. Meson currently lacks a way to try to get a compiler, and failing to find a compiler for a language always causes a hard error, so this is the only workable approach. Signed-off-by: Owen Hilyard --- meson.build | 3 +++ meson_options.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 937f6110c0..01d47100f2 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,9 @@ endif # set up some global vars for compiler, platform, configuration, etc. cc = meson.get_compiler('c') +if get_option('use_cpp') + cxx = meson.get_compiler('cpp') +endif dpdk_source_root = meson.current_source_dir() dpdk_build_root = meson.current_build_dir() dpdk_conf = configuration_data() diff --git a/meson_options.txt b/meson_options.txt index 7c220ad68d..9461d194a1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -48,3 +48,5 @@ option('tests', type: 'boolean', value: true, description: 'build unit tests') option('use_hpet', type: 'boolean', value: false, description: 'use HPET timer in EAL') +option('use_cpp', type: 'boolean', value: true, description: + 'enable components requiring a C++ compiler.') \ No newline at end of file