Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mutiple-compiler config and select #39

Open
chen3feng opened this issue May 18, 2013 · 5 comments
Open

Support mutiple-compiler config and select #39

chen3feng opened this issue May 18, 2013 · 5 comments

Comments

@chen3feng
Copy link
Owner

chen3feng commented May 18, 2013

cc_toolchain(
    name = 'gcc',
    version = '4.1.2',
    path = '/usr/local/bin'
)

cc_toolchain(
    name = 'clang',
    version = '4.1.2',
    cpp = 'clang -E',
    cc = 'clang',
    cxx = 'clang++'
)

cc_config(
    toolchain = 'gcc-4.1.2'
)
$ blade build --cc=gcc-4.1.2
@ghost ghost assigned chen3feng May 18, 2013
@ericuni
Copy link
Contributor

ericuni commented Sep 24, 2018

In my env, I have /usr/bin/gcc-7, so I add the following to BLADE_ROOT

cc_toolchain(
    name = 'gcc',
    version = '7',
    path = '/usr/bin'
)

When I run blade build, it says NameError: name 'cc_toolchain' is not defined.
I am using the lasted master branch of this repo.

@chen3feng
Copy link
Owner Author

chen3feng commented Sep 25, 2018 via email

@ericuni
Copy link
Contributor

ericuni commented Sep 25, 2018

这样啊, 了解了

@hailiang-wang
Copy link

同是在Mac下使用,请问环境变量怎么设置?

@chen3feng
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants