[zorg] r263599 - disable LTO on bots using new LLVM_ENABLE_LTO=Off option
Marc Schifer via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 23:07:27 PDT 2016
This change makes use of the LLVM_ENABLE_LTO flag in place of passing C_FLAGS and CXX_FLAGS and the default for LLVM_ENABLE_LTO isis ON
The checks that were removed are for things we no longer pass on the command line as result of the addition of the LLVM_ENABLE_LTO flag. They may be set by other actions in the build system later, but are not something that gets picked up by these tests.
> On Mar 15, 2016, at 9:38 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> Hi Marc,
>
>> On Mar 15, 2016, at 3:40 PM, Marc Schifer via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>>
>> Author: mschifer
>> Date: Tue Mar 15 17:40:21 2016
>> New Revision: 263599
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=263599&view=rev
>> Log:
>> disable LTO on bots using new LLVM_ENABLE_LTO=Off option
>>
>> Modified:
>> zorg/trunk/test/jenkins/test_build.py
>>
>> Modified: zorg/trunk/test/jenkins/test_build.py
>> URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/test/jenkins/test_build.py?rev=263599&r1=263598&r2=263599&view=diff
>> ==============================================================================
>> --- zorg/trunk/test/jenkins/test_build.py (original)
>> +++ zorg/trunk/test/jenkins/test_build.py Tue Mar 15 17:40:21 2016
>> @@ -45,10 +45,7 @@
>> # CHECK-SIMPLE: '-DLLVM_INCLUDE_UTILS=On'
>> # CHECK-SIMPLE: '-DPACKAGE_VERSION=3.8.0'
>> # CHECK-SIMPLE: '-DCMAKE_MACOSX_RPATH=On'
>> -# CHECK-SIMPLE: '-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -gline-tables-only -DNDEBUG'
>> -# CHECK-SIMPLE: '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -gline-tables-only -DNDEBUG'
>> -# CHECK-SIMPLE-NOT: '-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG'
>> -# CHECK-SIMPLE-NOT: '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG'
>
> Why removing these check?
> It seems to me that we're no longer checking that there is no "CMAKE_CXX_FLAGS" explicitly set.
> Especially we're no longer checking that we're setting -gline-tables-only.
>
>
>> +# CHECK-SIMPLE: '-DLLVM_ENABLE_LTO=Off
>
> Isn't "Off" the default? What is the motivation for this change?
>
>
>> # CHECK-SIMPLE-NOT: -DLLVM_PARALLEL_LINK_JOBS
>> # CHECK-SIMPLE: @@@@@@
>> # CHECK-SIMPLE: @@@ Ninja @@@
>> @@ -71,9 +68,8 @@
>>
>> # RUN: python %{src_root}/zorg/jenkins/build.py clang all --lto > %t-lto.log
>> # RUN: FileCheck --check-prefix CHECK-LTO < %t-lto.log %s
>> -# CHECK-LTO: '-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG'
>> -# CHECK-LTO: '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG'
>> # CHECK-LTO: -DLLVM_PARALLEL_LINK_JOBS
>> +# CHECK-LTO-NOT:: '-DLLVM_ENABLE_LTO=Off
>>
>> # Now try just a build
>> # RUN: python %{src_root}/zorg/jenkins/build.py clang build --lto
>> @@ -136,14 +132,14 @@
>> # RUN: python %{src_root}/zorg/jenkins/build.py cmake all --lto | FileCheck --check-prefix CHECK-CMAKELTO %s
>> # CHECK-CMAKELTO: '/usr/local/bin/cmake' '-G' 'Ninja'
>> # CHECK-CMAKELTO: '-DLLVM_BUILD_EXAMPLES=Off'
>> -# CHECK-CMAKELTO: '-DCMAKE_C_FLAGS=-flto' '-DCMAKE_CXX_FLAGS=-flto'
>> +# CHECK-CMAKELTO-NOT:: '-DLLVM_ENABLE_LTO=Off
>
> Again we're losing the "positive" check that was verifying that LTO is enabled for the --lto flag.
>
> (I don't have the context for your changes, so I can be off...)
>
> --
> Mehdi
>
>
>
>> # CHECK-CMAKELTO: '-DLLVM_PARALLEL_LINK_JOBS=1'
>> # CHECK-CMAKELTO: '-DCMAKE_BUILD_TYPE=Release'
>>
>> # RUN: env MAX_PARALLEL_LINKS=2 python %{src_root}/zorg/jenkins/build.py cmake all --lto | FileCheck --check-prefix CHECK-CMAKE-PAR-LTO %s
>> # CHECK-CMAKE-PAR-LTO: '/usr/local/bin/cmake' '-G' 'Ninja'
>> # CHECK-CMAKE-PAR-LTO: '-DLLVM_BUILD_EXAMPLES=Off'
>> -# CHECK-CMAKE-PAR-LTO: '-DCMAKE_C_FLAGS=-flto' '-DCMAKE_CXX_FLAGS=-flto'
>> +# CHECK-CMAKE-PAR-LTO-NOT:: '-DLLVM_ENABLE_LTO=Off
>> # CHECK-CMAKE-PAR-LTO: '-DLLVM_PARALLEL_LINK_JOBS=2'
>> # CHECK-CMAKE-PAR-LTO: '-DCMAKE_BUILD_TYPE=Release'
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160315/367e6b3b/attachment.html>
More information about the llvm-commits
mailing list