From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.140.100.197 with SMTP id s63mr19205481qge.4.1457413325546; Mon, 07 Mar 2016 21:02:05 -0800 (PST) X-Received: by 10.182.49.197 with SMTP id w5mr265376obn.16.1457413325465; Mon, 07 Mar 2016 21:02:05 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!w104no5523367qge.1!news-out.google.com!k1ni12173igd.0!nntp.google.com!hb3no12410871igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Mar 2016 21:02:05 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.69.190.74; posting-account=LwEypwoAAAD5lknaw_JqkoK-tug0R26e NNTP-Posting-Host: 75.69.190.74 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2a8f2430-a60a-4f6f-be65-dc6c844cf091@googlegroups.com> Subject: Question about C++ files with GPRBUILD From: Zack Boll Injection-Date: Tue, 08 Mar 2016 05:02:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1647 X-Received-Body-CRC: 1335076331 Xref: news.eternal-september.org comp.lang.ada:29701 Date: 2016-03-07T21:02:05-08:00 List-Id: I have a directory with several C++ test driver. For a test, my project file only includes one of the test drivers. for Languages use ("C++"); for Main use ("test_driver_1.cpp"); for Source_Dirs use ("."); when I go to compile the test driver from GPS, gprbuild tries to compile all C++ files in the directory. Does anyone have an idea on why it does that and how I can fix it to only compile the relevant C++ file? gprbuild -v -d -P/test_scripts/test_scripts.gpr -XADA_DIALECT=Ada_2012 -XARCHITECTURE=x86_64_Linux -XBUILD_FLAGS=Optimize -XELABORATION_CHECKS=Static -XCOMPILER_MULTIPROCESS=8 -XDEBUG_TARGET=local test_driver_1.cpp -s -j8 Thanks, Zack