Skip to content

Commit

Permalink
Prepend inc flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 17, 2024
1 parent 008e9d1 commit c7df559
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 3.3
os: ubuntu-22.04
- ruby: 3.2
os: macos-14
- ruby: 3.1
os: macos-13
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion ext/or-tools/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# find_header and find_library first check without adding path
# which can cause them to find system library
$INCFLAGS << " -I#{inc}"
$INCFLAGS.prepend("-I#{inc} ")
# could support shared libraries for protobuf and abseil
# but keep simple for now
raise "libprotobuf.a not found" unless File.exist?("#{lib}/libprotobuf.a")
Expand Down

0 comments on commit c7df559

Please sign in to comment.