Keg::Relocation: allow -I, -L, -isystem prefixes

This commit is contained in:
Rylan Polster 2021-11-07 23:32:18 -05:00
parent d8d52ba691
commit febcdddf96
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -12,7 +12,7 @@ class Keg
class Relocation
extend T::Sig
RELOCATABLE_PATH_REGEX_PREFIX = /(?<![a-zA-Z0-9])/.freeze
RELOCATABLE_PATH_REGEX_PREFIX = /(?:(?<=-I|-L|-isystem)|(?<![a-zA-Z0-9]))/.freeze
def initialize
@replacement_map = {}