enable static and dynamic large object for swift

Change-Id: I73290e1bbbc035e5aace2dc80c4fcddbf974e05f