[DEV] dotnet: Remove unnecessary constraints for dotnet-trace
diff --git a/renode b/renode
index ab98253..37ebf8a 100755
--- a/renode
+++ b/renode
@@ -66,17 +66,6 @@
exit 1
fi
-if [ "$TARGET" == "Release" ] && $TRACE
-then
- echo "Tracing is available only with the debug target"
- exit 1
-fi
-
-if $ON_WINDOWS && $TRACE
-then
- echo "Tracing is not available on the Windows platform"
-fi
-
if ! $ON_WINDOWS && ! $NET
then
verify_mono_version
@@ -98,17 +87,18 @@
if $ON_WINDOWS
then
TFM="net6.0-windows10.0.17763.0"
- "${OUTPUT_PATH}/${TARGET}/${TFM}/Renode.exe" "${PARAMS[@]:-}"
else
- if ! $TRACE
- then
- TRACE_COMMAND=""
- else
- TRACE_COMMAND="dotnet-trace collect --format ${TRACE_FORMAT} --"
- fi
TFM="net6.0"
- ${TRACE_COMMAND} dotnet "${OUTPUT_PATH}/${TARGET}/${TFM}/Renode.dll" "${PARAMS[@]:-}"
fi
+
+ if ! $TRACE
+ then
+ TRACE_COMMAND=""
+ else
+ TRACE_COMMAND="dotnet-trace collect --format ${TRACE_FORMAT} --"
+ fi
+
+ ${TRACE_COMMAND} dotnet "${OUTPUT_PATH}/${TARGET}/${TFM}/Renode.dll" "${PARAMS[@]:-}"
else
if $ON_WINDOWS
then