| // REQUIRES: iree_dynamic_plugins | |
| // One library named twice, by flag and by environment, loads once. | |
| // RUN: iree-compile --iree-load-plugin=%iree_example_dyn_plugin \ | |
| // RUN: --iree-load-plugin=%iree_example_dyn_plugin \ | |
| // RUN: --iree-plugin=example_dyn --compile-to=input %s 2>&1 | FileCheck %s | |
| // RUN: env IREE_LOAD_PLUGINS=%iree_example_dyn_plugin \ | |
| // RUN: iree-compile --iree-load-plugin=%iree_example_dyn_plugin \ | |
| // RUN: --iree-plugin=example_dyn --compile-to=input %s 2>&1 | FileCheck %s | |
| // CHECK: remark: This remark is from the example plugin activation | |
| // CHECK-NOT: remark: This remark is from the example plugin activation | |
| func.func @main() { | |
| return | |
| } |