Brad Bishop | bba38f3 | 2018-08-23 16:11:46 +0800 | [diff] [blame] | 1 | From 98e793d9f2250e7c1f9f1eb5dfd616a6a8829e9a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 3 Sep 2018 11:12:27 -0700 |
| 4 | Subject: [PATCH] gen_def |
| 5 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 6 | This is partial port because half of this patch is already present in our |
| 7 | patches |
| 8 | |
| 9 | Upstream-Status: Backport [https://github.com/apache/serf/commit/8f07c9626106873a594fd07e7c257e9080d8660b] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | bba38f3 | 2018-08-23 16:11:46 +0800 | [diff] [blame] | 11 | --- |
| 12 | SConstruct | 2 ++ |
| 13 | 1 file changed, 2 insertions(+) |
| 14 | |
| 15 | diff --git a/SConstruct b/SConstruct |
| 16 | index 571bdce..877731e 100644 |
| 17 | --- a/SConstruct |
| 18 | +++ b/SConstruct |
| 19 | @@ -158,6 +158,8 @@ env = Environment(variables=opts, |
| 20 | ENV = os.environ, |
| 21 | ) |
| 22 | |
| 23 | +gen_def_script = env.File('build/gen_def.py').rstr() |
| 24 | + |
| 25 | env.Append(BUILDERS = { |
| 26 | 'GenDef' : |
| 27 | Builder(action = '"%s" "%s" $SOURCES > $TARGET' % (sys.executable, gen_def_script,), |