Closed Atry closed 2 years ago
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@Atry has updated the pull request. You must reimport the pull request before landing.
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@Atry has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@Atry has updated the pull request. You must reimport the pull request before landing.
@Atry has updated the pull request. You must reimport the pull request before landing.
@Atry has updated the pull request. You must reimport the pull request before landing.
@Atry has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@Atry has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Previously, we unconditionally forward
stdenv
to C++ dependencies, in order to avoid ABI incompatibility between HHVM and dependencies. This is not necessary when the C++ standard library is the compiler default value. For example, on Linux, both clang++ and g++ links libraries with libstdc++ by default, and all nix packages are linked with libstdc++ by default, which should be already ABI compatible with HHVM.This PR forwards
stdenv
to dependencies only if the C++ standard library is not the compiler default value, i.e. when there is a-stdlib=
linker flag innix-support/libcxx-ldflags
file from the compiler wrapper package.Test Plan: This PR is tested as part of https://github.com/facebook/hhvm/pull/9129