#!/bin/bash

# Obtain the preparsed file
#OUT=$(pwd)
#S=/var/tmp/portage/app-office/libreoffice-5.4.3.2/work/libreoffice-5.4.3.2 && \
#    I=$S/instdir && \
#    W=$S/workdir &&  \
#    cd $S && \
#    x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSYSTEM_CURL -DSYSTEM_ZLIB \
#                            -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe \
#                            -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14 \
#                            -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -Os -march=native -pipe  -DLIBO_INTERNAL_ONLY \
#                            -E $S/ucb/source/ucp/ftp/ftpresultsetbase.cxx -o $OUT/ftpresultsetbase.cpp \
#                            -I$S/ucb/source/ucp/ftp/  -I$S/include   -I$S/config_host  -I/usr/include  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal

# Compile it
x86_64-pc-linux-gnu-g++ -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe \
                        -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14 \
                        -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O0 -march=native -pipe  -DLIBO_INTERNAL_ONLY \
                        -c ./ftpresultsetbase.cpp -o ./ftpresultsetbase.o &&
! x86_64-pc-linux-gnu-g++ -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe \
  -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14 \
  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -Os -march=native -pipe  -DLIBO_INTERNAL_ONLY \
  -c ./ftpresultsetbase.cpp -o ./ftpresultsetbase.o
