Skip to main content

SCons tool for LLVM clang++ compiler

Project description

PyPi package version Travis CI build status

SCons support for LLVM clang C++ compiler.

Important note

SCons currently provides clangxx tool which replaces this one. See SCons user documentation, especially the tool list. This package is left here for historical reasons and for some experimental purposes.

Installation

There are few ways to install this tool to your project.

From pypi

pip install scons-tool-loader scons-tool-clangpp

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader scons-tool-clangpp

Alternatively, you may add this to your Pipfile

[dev-packages]
scons-tool-loader = "*"
scons-tool-clangpp = "*"

The tool will be installed as a namespaced package sconstool.clangpp in project’s virtual environment. You may further use scons-tool-loader to load the tool.

As a git submodule

  1. Create new git repository:

    mkdir /tmp/prj && cd /tmp/prj
    touch README.rst
    git init
  2. Add the scons-tool-clangpp as a submodule:

    git submodule add git://github.com/ptomulik/scons-tool-clangpp.git site_scons/site_tools/clangpp

Usage example

  1. Create simple C++ file

    // test.cpp
    int main()
    {
      return 0;
    }
  2. Create simple SConstruct file

    # SConstruct
    # TODO: uncomment following lines if the tool is installed via pip/pipenv
    # import sconstool.loader
    # sconstool.loader.extend_toolpath(transparent=True)
    env = Environment(tools = ['default', 'clangpp'])
    print(env.subst("using $CXX $CXXVERSION"))
    env.Program('test.cpp')
  3. Try it out:

    scons

LICENSE

Copyright (c) 2014-2020 by Paweł Tomulik <ptomulik@meil.pw.edu.pl>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scons-tool-clangpp-0.2.10.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

scons_tool_clangpp-0.2.10-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file scons-tool-clangpp-0.2.10.tar.gz.

File metadata

  • Download URL: scons-tool-clangpp-0.2.10.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for scons-tool-clangpp-0.2.10.tar.gz
Algorithm Hash digest
SHA256 f9df621707f1fa498886f733d273b293665983af20f175926a2972f2a77fbfec
MD5 fea2be5697c9fd54649eb560204e8c80
BLAKE2b-256 51bae37e703da0ab58edb93b366385ba72713a25cc648c5894cbf09df707e6e1

See more details on using hashes here.

File details

Details for the file scons_tool_clangpp-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: scons_tool_clangpp-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for scons_tool_clangpp-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 52123436a9f3fe19451634a2fdd9633a919f66f5eebba1782575f2a4a889684b
MD5 ccf8429cc606a5f0532214febfd9682a
BLAKE2b-256 1359583fd34b5774241733aad9f6fbc2e2c8afc75e0c5b5521ca3fe28ab4cf26

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page