183c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#!/bin/bash
283c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#
383c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# Copyright (C) 2017 The Android Open Source Project
483c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#
583c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# Licensed under the Apache License, Version 2.0 (the "License");
683c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# you may not use this file except in compliance with the License.
783c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# You may obtain a copy of the License at
883c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#
983c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#     http://www.apache.org/licenses/LICENSE-2.0
1083c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray#
1183c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# Unless required by applicable law or agreed to in writing, software
1283c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# distributed under the License is distributed on an "AS IS" BASIS,
1383c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1483c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# See the License for the specific language governing permissions and
1583c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# limitations under the License.
1683c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray
1783c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# Make verification soft fail, to ensure the verifier does not flag
1883c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# the method we want to compile as "non-compilable" because it sees
1983c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffray# the method will throw IncompatibleClassChangeError.
2083c8e27a292e6e002fb3b3def75cf6d8653378e8Nicolas Geoffrayexec ${RUN} $@ --verify-soft-fail
21