Commit 37f77d2e by Jamie Madill

Fixes to the standalone Linux build.

Several small build errors present on Linux cropped up due to different warning flags and platform quirks. BUG=angle:627 Change-Id: If8f651cacf05bb06ecb129be47b12729ccc3f69b Reviewed-on: https://chromium-review.googlesource.com/197724Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent b05e3495
......@@ -217,6 +217,12 @@
{
'msvs_cygwin_dirs': ['../third_party/cygwin'],
},
},
{ # OS != win
'target_defaults':
{
'cflags': [ '-fPIC' ],
},
}],
['OS != "win" and OS != "mac"',
{
......
......@@ -557,7 +557,7 @@ void InsertBuiltInFunctions(ShShaderType type, ShShaderSpec spec, const ShBuiltI
// Depth range in window coordinates
//
TFieldList *fields = NewPoolTFieldList();
TSourceLoc zeroSourceLoc = {0};
TSourceLoc zeroSourceLoc = {0, 0, 0, 0};
TField *near = new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1), NewPoolTString("near"), zeroSourceLoc);
TField *far = new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1), NewPoolTString("far"), zeroSourceLoc);
TField *diff = new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1), NewPoolTString("diff"), zeroSourceLoc);
......
......@@ -8,6 +8,6 @@
'<!@(python <(angle_path)/enumerate_files.py \
-dirs <(angle_path)/tests/compiler_tests \
-types *.cpp *.h \
-excludes */compiler_test_main.cpp)'
-excludes <(angle_path)/tests/compiler_tests/compiler_test_main.cpp)'
],
}
......@@ -8,6 +8,6 @@
'<!@(python <(angle_path)/enumerate_files.py \
-dirs <(angle_path)/tests/preprocessor_tests \
-types *.cpp *.h \
-excludes */preprocessor_test_main.cpp)'
-excludes <(angle_path)/tests/preprocessor_tests/preprocessor_test_main.cpp)'
],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment