facebookresearch / CompilerGym

Reinforcement learning environments for compiler and program optimization tasks
https://compilergym.ai/
MIT License
906 stars 127 forks source link

Remove bazel workarounds from `runfiles_path()` #616

Open ChrisCummins opened 2 years ago

ChrisCummins commented 2 years ago

The compiler_gym.util.runfiles_path() function contains different behavior depending on whether CompilerGym is running within bazel's sandbox. Once we complete the migration to cmake we can use something simpler like importlib.resources.path instead.