X-Git-Url: http://nitlanguage.org diff --git a/src/ffi/c_compiler_options.nit b/src/ffi/c_compiler_options.nit index 7717973..af4e938 100644 --- a/src/ffi/c_compiler_options.nit +++ b/src/ffi/c_compiler_options.nit @@ -57,13 +57,7 @@ private class CCompilerOptionsPhase end var options = new Array[CCompilerOption] - for arg in args do - if not arg isa AExprAtArg then - modelbuilder.error(nat, "Syntax error: \"{annotation_name}\" expects its arguments to be the name of the package as String literals or a call to `exex(\"local_program\")`.") - return - end - - var expr = arg.n_expr + for expr in args do if expr isa AStringFormExpr then var text = expr.collect_text text = text.substring(1, text.length-2) @@ -172,7 +166,6 @@ class DirectCCompilerOption super CCompilerOption var option: String - init (opt: String) do option = opt end class ExecCCompilerOption @@ -180,10 +173,4 @@ class ExecCCompilerOption var command: Array[String] var exec_node: ACallExpr - - init (command: Array[String], exec_node: ACallExpr) - do - self.command = command - self.exec_node = exec_node - end end