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.

Installation

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

From pypi

pip install scons-tool-loader scons-tool-clang

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader scons-tool-clang

Alternativelly, you may add this to your Pipfile

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

The tool will be installed as a namespaced package sconstool.clang 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-clang as a submodule:

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

Usage example

  1. Create simple C file

    // test.c
    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', 'clang'])
    print(env.subst("using $CC $CCVERSION"))
    env.Program('test.c')
  3. Try it out:

    scons

LICENSE

Copyright (c) 2014-2018 by Pawel 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-clang-0.2.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scons_tool_clang-0.2.5-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file scons-tool-clang-0.2.5.tar.gz.

File metadata

  • Download URL: scons-tool-clang-0.2.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for scons-tool-clang-0.2.5.tar.gz
Algorithm Hash digest
SHA256 bae4d6e66390f8e2c2d2c9ce6fb84571de5ae14d3101d4674f7514c9f12702fc
MD5 afae23454d8259b0bb20fe1fffa8d0cf
BLAKE2b-256 b708d77043ae5579ef6871acc9e63bd7597813eef43512f0e7fad7f6757add03

See more details on using hashes here.

File details

Details for the file scons_tool_clang-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: scons_tool_clang-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for scons_tool_clang-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4572e9e598b34bc03c8dd005649d2b8da59e408cdb34aeebd0a751d68be5c041
MD5 e0b31d43b221508a80916dc232bd1cf9
BLAKE2b-256 647d8922e7eb6fec69329b861fb61e5aabdb40ecbe14a610f20645f58a083371

See more details on using hashes here.

Supported by

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