Meta: Account for platform specific linking

On Windows, similar to AIX, we would link against the import library
rather than the actual library (at least when doing dynamic linking).
Adjust the `libs` setting to allow linking properly on Windows. This
reduces the number of undefined symbols when linking AK to 1.
This commit is contained in:
Saleem Abdulrasool 2024-10-02 13:03:07 -07:00
parent 768d814ffd
commit a7aed6ba35
No known key found for this signature in database

View file

@ -1,6 +1,10 @@
import("//Meta/gn/build/libs/third_party.gni") import("//Meta/gn/build/libs/third_party.gni")
third_party_dependency("simdutf") { third_party_dependency("simdutf") {
libs = [ "simdutf" ] if (current_os == "win") {
libs = [ "simdutf.lib" ]
} else {
libs = [ "simdutf" ]
}
extra_public_configs = [ "//Meta/gn/build:pic" ] extra_public_configs = [ "//Meta/gn/build:pic" ]
} }