Skip to content

Commit 3d714c0

Browse files
authored
Merge pull request fbsamples#14 from fbsamples/carljparker/config-include-20181101
Show how to use includes in .buckconfig
2 parents cf276a9 + c3617af commit 3d714c0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

hello-buck-cxx/.buckconfig

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
21
[cxx]
32
cxxppflags="-D HELLOSTRING=\"Buck\""
43

5-
[cxx#other_platform]
6-
cxxppflags="-D HELLOSTRING=\"Chuck\""
4+
<file:cxx-other-platform/cxx-other-platform.include>
5+
6+
#
7+
# Include the following configuration file if it
8+
# exists. If the file does not exist, do nothing.
9+
# (Note the `?` prefix.)
10+
#
11+
<?file:future-platform/future-platform.include>
712

813
[parser]
914
default_build_file_syntax = skylark
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[cxx#other_platform]
2+
cxxppflags="-D HELLOSTRING=\"Chuck\""
3+

0 commit comments

Comments
 (0)