summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-07 13:46:52 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-09 06:51:51 +0100
commit083900f88c112b69e098bbe5820b1d077c18e92c (patch)
treec1f54839b3feb3d5bf0af4139b51bafee81560ed /bin
parent1c3e170d56d3cad1e7729f839fa63f607b62e4e3 (diff)
Make sal/config.h the first in pch
By convention, it should be the first include in C/CXX files; so use of pch should not break that. Change-Id: Ic329c5f39e8f48ad1778724368e262e48972342b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112123 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update_pch4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/update_pch b/bin/update_pch
index d72509007e28..6641f1584055 100755
--- a/bin/update_pch
+++ b/bin/update_pch
@@ -512,6 +512,8 @@ def fixup(includes, module):
except:
fixes.append(inc)
+ append('sal/config.h')
+
if module == 'basctl':
if 'basslots.hxx' in includes:
append('sfx2/msg.hxx')
@@ -535,6 +537,8 @@ def sort_by_category(list, root, module, filter_local):
prefix = '<' + module + '/'
for i in list:
+ if 'sal/config.h' in i:
+ continue # added unconditionally in fixup
if is_c_runtime(i, root, module):
sys.append(i)
elif '<boost/' in i: