can-compile.js 292 B

1234567891011121314
  1. // Copyright 2013 Lovell Fuller and others.
  2. // SPDX-License-Identifier: Apache-2.0
  3. 'use strict';
  4. const libvips = require('../lib/libvips');
  5. try {
  6. if (!(libvips.useGlobalLibvips() || libvips.hasVendoredLibvips())) {
  7. process.exitCode = 1;
  8. }
  9. } catch (err) {
  10. process.exitCode = 1;
  11. }