Run layout-transitivity test only when debugging is enabled.

Because it depends on "-mllvm -debug" flag, the test fails in Release build.