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

cc.tcl assumes gnu gcc, breaks OpenOCD's submodule jimtcl configure for Darwin #12

Closed
jhgorse opened this issue Mar 16, 2013 · 3 comments

Comments

@jhgorse
Copy link

jhgorse commented Mar 16, 2013

This -gstabs flag is GNU gcc specific and does not apply to llvm's 'gcc' or clang.

        switch -glob -- [get-define host] {
                *-*-darwin* {
                        # Don't generate .dSYM directories
-->                       lappend cmdline -gstabs
                }
        }
        lappend cmdline $src -o $tmp {*}$opts(-libs)

Cross-referencing to the issue comment I left in the related OpenOCD issues:
esden/summon-arm-toolchain#54

@msteveb
Copy link
Owner

msteveb commented Mar 18, 2013

Really? Both clang and llvm-gcc support -gstabs for me:

$ clang --version
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
$ llvm-gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I've added a comment to the referenced ticket. There may be another cause.

@msteveb
Copy link
Owner

msteveb commented Mar 21, 2013

I have committed a fix. Let me know if it doesn't work.

@msteveb msteveb closed this as completed Mar 21, 2013
@jhgorse
Copy link
Author

jhgorse commented Apr 3, 2013

Yep, it's good here. Thanks!

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

No branches or pull requests

2 participants