[libc++] Use functions instead of global variables to set libc++ build flags
authorLouis Dionne <ldionne@apple.com>
Wed, 2 Oct 2019 20:07:01 +0000 (20:07 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 2 Oct 2019 20:07:01 +0000 (20:07 +0000)
commit925d9d2e1443e49f2e4b7a4a674bb7bfe29609b0
tree2ef00deaca532e1bdb194b7b11b49e120a62003c
parent9ac0cda40a495d6fd78e03fe6432a680a3854c62
[libc++] Use functions instead of global variables to set libc++ build flags

This commit follows the trend of doing things per-target instead of
modifying the C++ flags globally. It does so for visibility-related
flags, other basic build flags and Windows-specific flags.

llvm-svn: 373517
libcxx/CMakeLists.txt
libcxx/src/CMakeLists.txt