Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Belle2017-09-16 14:33:04 +0000
committerJan Belle2017-09-16 14:33:04 +0000
commita68a06f09a4026660d6839b31829a547c3e21285 (patch)
tree6f61745fe2d8b349f416c9cc1fcc030ccf796540 /tests/org.eclipse.etrice.generator.common.tests
parent2f77828fb75778938869e8d29c26340221f5f89b (diff)
downloadorg.eclipse.etrice-a68a06f09a4026660d6839b31829a547c3e21285.tar.gz
org.eclipse.etrice-a68a06f09a4026660d6839b31829a547c3e21285.tar.xz
org.eclipse.etrice-a68a06f09a4026660d6839b31829a547c3e21285.zip
[tests] fixed missing linker library flags for linux
Diffstat (limited to 'tests/org.eclipse.etrice.generator.common.tests')
-rw-r--r--tests/org.eclipse.etrice.generator.common.tests/etTest.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.generator.common.tests/etTest.gradle b/tests/org.eclipse.etrice.generator.common.tests/etTest.gradle
index 86b7145c8..e17d1d8d7 100644
--- a/tests/org.eclipse.etrice.generator.common.tests/etTest.gradle
+++ b/tests/org.eclipse.etrice.generator.common.tests/etTest.gradle
@@ -1,3 +1,5 @@
+import static org.apache.tools.ant.taskdefs.condition.Os.*
+
apply from: etGenerator
apply from: etUnitConverter
@@ -61,6 +63,7 @@ ext.createTest = { lang, name, models, options = [] ->
binaries.all {
cCompiler.args '-g3'
cppCompiler.args '-g3'
+ if(isFamily(FAMILY_UNIX)) { linker.args '-lpthread', '-lrt', '-lm' }
}
}
}

Back to the top