From c7df559e5b7025c07e7e72b457473aa683b90eb0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 17 Sep 2024 14:54:22 -0700 Subject: [PATCH] Prepend inc flags --- .github/workflows/build.yml | 4 ---- ext/or-tools/extconf.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7309b6d..83055b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/ext/or-tools/extconf.rb b/ext/or-tools/extconf.rb index 84fb7f9..c66fa42 100644 --- a/ext/or-tools/extconf.rb +++ b/ext/or-tools/extconf.rb @@ -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")