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

Fix CI #832

Merged
merged 1 commit into from
Jan 10, 2019
Merged

Fix CI #832

merged 1 commit into from
Jan 10, 2019

Commits on Jan 10, 2019

  1. Fix CI

    build error in if_ruby.c:
    
    ```
    if_ruby.c:1069:9: error: use of unknown builtin '__builtin_alloca_with_align' [-Wimplicit-function-declaration]
            buff = ALLOCA_N(char, RSTRING_LEN(str) + 1);
                   ^
    /usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:12: note: expanded from macro 'ALLOCA_N'
        (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
               ^
    if_ruby.c:1069:9: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
    /usr/local/Cellar/ruby/2.6.0/include/ruby-2.6.0/ruby/ruby.h:1666:5: note: expanded from macro 'ALLOCA_N'
        (type*)__builtin_alloca_with_align((sizeof(type)*(n)), \
        ^
    ```
    
    Homebrew's ruby bottle for sierra has built by Xcode 9.x, which supports
    '__builtin_alloca_with_align' so 'ALLOCA_N' macro in ruby.h uses it, but
    Xcode 8.x doesn't support it then causes the above error.
    
    For workaround, should reinstall ruby from source in xcode8.3.
    ichizok committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    c06fa58 View commit details
    Browse the repository at this point in the history