diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-11-17 02:21:53 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-11-17 02:21:53 +0000 |
commit | f94d6ea95a9432a0a0c6e77fce094d541a47a91e (patch) | |
tree | e55d6c7762349b65938da43171cc6e3a2671bfaa /llvm/utils/gn/build/mac_sdk.gni | |
parent | b05ea28f1f19dcd5b964c3a9a826d6eb2213ed42 (diff) | |
download | bcm5719-llvm-f94d6ea95a9432a0a0c6e77fce094d541a47a91e.tar.gz bcm5719-llvm-f94d6ea95a9432a0a0c6e77fce094d541a47a91e.zip |
Add initial scaffolding for the GN build.
See "GN build roundtable summary; adding GN build files to the repo" on
llvm-dev and cfe-dev for discussion.
In particular, this build is completely unsupported. People adding new files to
LLVM are not expected to update the GN build files, and reviewers are not
supposed to request the gn build files to be updated.
This adds just enough to be able to build llvm/lib/Demangle. It requires using
a monorepo.
This adds a few build config options you can set in args.gn
(`gn args out/foo --list` for all):
- is_debug = true to enable debug builds (defaults to release)
- llvm_enable_assertions to toggle assertions (defaults to true)
- clang_base_path, if set an absolute path to a locally-built clang to be used
as host compiler
Differential Revision: https://reviews.llvm.org/D54345
llvm-svn: 347128
Diffstat (limited to 'llvm/utils/gn/build/mac_sdk.gni')
-rw-r--r-- | llvm/utils/gn/build/mac_sdk.gni | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/gn/build/mac_sdk.gni b/llvm/utils/gn/build/mac_sdk.gni new file mode 100644 index 00000000000..7999042a7ab --- /dev/null +++ b/llvm/utils/gn/build/mac_sdk.gni @@ -0,0 +1,4 @@ +# Location of the mac sdk. +# If that's not fixed, might want to shell out to xcrun at gn time to +# retrieve this, but for now this seems to do the trick. +mac_sdk_path = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" |