@@ -39,18 +39,11 @@ def must_be_writable_directories
3939 end
4040 end
4141
42- sig { params ( path : ::Pathname ) . void }
43- def initialize ( path )
44- super
45-
46- @require_relocation = T . let ( false , T ::Boolean )
47- end
48-
4942 sig { params ( id : String , file : MachOShim ) . returns ( T ::Boolean ) }
5043 def change_dylib_id ( id , file )
5144 return false if file . dylib_id == id
5245
53- @ require_relocation = true
46+ require_relocation!
5447 odebug "Changing dylib ID of #{ file } \n from #{ file . dylib_id } \n to #{ id } "
5548 file . change_dylib_id ( id , strict : false )
5649 true
@@ -67,7 +60,7 @@ def change_dylib_id(id, file)
6760 def change_install_name ( old , new , file )
6861 return false if old == new
6962
70- @ require_relocation = true
63+ require_relocation!
7164 odebug "Changing install name in #{ file } \n from #{ old } \n to #{ new } "
7265 file . change_install_name ( old , new , strict : false )
7366 true
@@ -84,7 +77,7 @@ def change_install_name(old, new, file)
8477 def change_rpath ( old , new , file )
8578 return false if old == new
8679
87- @ require_relocation = true
80+ require_relocation!
8881 odebug "Changing rpath in #{ file } \n from #{ old } \n to #{ new } "
8982 file . change_rpath ( old , new , strict : false )
9083 true
0 commit comments