Skip to content

v0.1.6

Compare
Choose a tag to compare
@cocoa-xu cocoa-xu released this 20 Feb 14:10
· 14 commits to main since this release
fa73d8f

v0.1.6 (2022-02-20)

Added

  • allow missing CC or CXX when detecting available targets by setting allow_missing_compiler to true.

    Adding this option because there is no need to require the presence of both CC and CXX for projects that only uses one of them.

    def project do
      [ 
      # ...
      cc_precompiler: [
          # optional config key
          #   true - the corresponding target will be available as long as we can detect either `CC` or `CXX`
          #   false  - both `CC` and `CXX` should be present on the system
          # defaults to `false`
          allow_missing_compiler: false,
          # ...
      ],
      # ...
      ]
    end

    For example, akash-akya/vix only uses gcc but they had to install g++ because of this requirement.

        - name: Install Dependencies
          run: |
            sudo apt-get update
            # we don't need g++ compiler but we `cc_precompiler` looks for
            # g++ executable to detect the target
            sudo apt-get install -y gcc make curl tar \
              gcc-aarch64-linux-gnu g++-aarch64-linux-gnu